Does anyone know if you can have an object var inside of a class?
for example
class ExampleClass {
var $blah;
var $yada;
object $object = new SomeOtherClass;
...
}
I have tried a handful of ways, but I always end up with the error:
Parse error: parse error, expecting T_OLD_FUNCTION' orT_FUNCTION' or T_VAR' or'}'' in some_class.php on line 19
Any help would be greatly appreciated, as I don't know if I should keep trying, or if this simply can not be done.