"1111","2"=>"2222","3"=>"3333"  );        if&"/> "1111","2"=>"2222","3"=>"3333"  );        if&">

Home  >  Article  >  Backend Development  >  php 二维数组解决方法

php 二维数组解决方法

WBOY
WBOYOriginal
2016-06-13 12:41:32796browse

php 二维数组

<br />
<br />
       $name[0]= array("1"=>"1111","2"=>"2222","3"=>"3333"  );<br />
       if (isset($name[0]["1"]))<br />
        {<br />
                echo "wancheng fuzhi ";<br />
                echo $name[0][1].$name[0].$name[0];<br />
        }<br />
        else<br />
                echo "fffffffffff";<br />


直接贴代码 运行结果是  fffffffffff 就像是二维数组赋值赋不进去一样 求助

二维数组 PHP
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn