2
我正在学习使用PHP交互式shell,但我遇到了多行代码的问题。PHP交互式shell中的多行代码
像UNIX shell中使用反斜杠似乎不起作用。我究竟做错了什么 ?
php > function test(){\
php { echo "test";\
php { }\
php > test();
PHP Parse error: syntax error, unexpected T_ECHO, expecting T_STRING in php shell code on line 2
该死的......那很愚蠢:)。谢谢 ! – Andrei 2010-06-15 23:20:39
感谢您的额外信息! – Andrei 2010-06-15 23:23:13