我收到此错误:
Parse error: syntax error, unexpected T_PRINT, expecting T_STRING in
/homepages/26/d94605010/htdocs/lz/writecodeonline.com/php/index.php(190)
: eval()'d code on line 7
例子:
Class HelloWorld
{
public $word;
public function print()
{
echo $this->"hi";
}
}
$word = new HelloWorld();
$word = print();