你可以输出一下:die($OS);会输出windows_NT,所以你的数组名称有问题~~,换一个其他的名称就好了~

解决方案 »

  1.   

    $OS是一个系统预定义的变量,建议不要使用
    一定要用的话,如下:
    <?php
     unset($OS);
     $OS["A"] = "1";
     $OS["B"] = "2";
     $OS["C"] = "3";
     $OS["D"] = "4";
     $OS["E"] = "5";?>
      

  2.   

    cloudchen(cloudchen) ,你好,出错了:
    Warning: pos(): Passed variable is not an array or object in e:\www\1.php on line 11

    Warning: pos(): Passed variable is not an array or object in e:\www\1.php on line 11

    Warning: pos(): Passed variable is not an array or object in e:\www\1.php on line 11

    Warning: pos(): Passed variable is not an array or object in e:\www\1.php on line 11

    Warning: pos(): Passed variable is not an array or object in e:\www\1.php on line 11
    E
      

  3.   

    cloudchen,不好意思,我的错!非常感谢!