我的结果如下 Notice: Use of undefined constant bar - assumed 'bar' in E:\Test_Site\PHP\array_1.php on line 29 This will work: BNotice: Use of undefined constant bar - assumed 'bar' in E:\Test_Site\PHP\array_1.php on line 30 This will work:B This will work: B This will work:B
在我的机器上试了一下也没有区别.显示为Bob没有错.你是不是还有其它的代码没有给.如果只是这些代码.没有区别.
Notice: Use of undefined constant bar - assumed 'bar' in E:\Test_Site\PHP\array_1.php on line 29
This will work: BNotice: Use of undefined constant bar - assumed 'bar' in E:\Test_Site\PHP\array_1.php on line 30
This will work:B
This will work: B
This will work:B