- Output for 5.3.7 - 5.3.28, 5.4.0 - 5.4.26
- Parse error: syntax error, unexpected '{' in /in/hSFs3 on line 13
Process exited with code 255.
<?php
class foo {
function __construct() {
$this->name ="manzoor";
$this->age =28;
}
}
$foo = new foo();
echo $foo->name;
echo {$foo->$name};