You can't declare properties in classes like that. Members of a class can be either data members (constants and properties) or methods. In the PHP 5 way of doing things, this is basically how it works:
// de facto best practice: class names start with uppercase letter
class Abc
{
// de facto best practice: ALL UPPERCASE letters for constants
const SOME_COSTANT = 'this value is immutable'; // accessible outside and inside this class like Abc::SOME_CONSTANT or inside this class like self::SOME_CONSTANT
public $a = 'Hello'; // a data member that is accessible to all
protected $b = 'Hi'; // a data membet that is accessible to this class, and classes that extend this class
private $c = 'Howdy'; // a data member that is accessible only to this class
// visibility keywords apply here also
public function aMethod( $with, $some, $parameters ) // a method
{
/* do something */
}
}
You should really not consider using the php 4 practice of declaring data members with the var
keyword, unless you are still developing for php 4 of course.