$a[3][bar] 是什么啊?PHP 认识这个 bar 吗?==> $a[3]["bar"]

解决方案 »

  1.   

    你上面的代码我已经看了没有区别.
    在我的机器上试了一下也没有区别.显示为Bob没有错.你是不是还有其它的代码没有给.如果只是这些代码.没有区别.
      

  2.   

    我的结果如下
    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