parse error, expecting `','' or `';'' in ...

From: Date: Sat, 13 Aug 2005 12:04:03 +0000
Subject: parse error, expecting `','' or `';'' in ...
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2231@lists.php.net to get a copy of this message
我写了一段简单的php程序,在自己机子上没有问题,可发布到服务器上就出现了 这样的提示 Parse error: parse error, expecting ','' or ';'' in C:\Accounts\test\wwwRoot\test.php on line 14 感觉上似乎php4 不支持这样的写法: <?= $obj->get_another_obj()->invoke_function(); ?> 如果把语句拆开,使用一个临时变量就可以: <?php $tmp = $obj->get_another_obj(); echo $tmp->invoke_function(); ?> 各位是否遇到过这样的问题,还请给些提示,谢谢!

« previous php.doc.zh (#2231) next »