How can I do this, as the most obvious way doesn't work:
<?php class Inner { public $var; } class Outer { $test = new Inner; } ?> Yields:
Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in /f5/debate/public/test.php on line 10