$test[$test[11]]是可以的
但必须注意
如果$test[11]=2的话,那么$test[2]就必须先赋值

解决方案 »

  1.   

    可是我用了会出错.
    Parse error: parse error, unexpected '[', expecting ']' in 
    是不是因为$test[xx]里面的xx是数据库查询出来的数组?
      

  2.   


    $test[{$test['11']}]
    你这样试试!
      

  3.   

    <?php 
    $a[1]=2;
    $a[2]="surfchen";
    echo $a[$a[1]];
    ?>我的没问题。
      

  4.   

    to surfchen(偶木系楼主,偶系楼猪)(JS&&C菜菜) :
    可能是因为你的$a[1]是数值..