'b');//$item 为一个数组 $a[1] = $item; $a[1]"/> 'b');//$item 为一个数组 $a[1] = $item; $a[1]">

php的一个数组有关问题

WBOY
Release: 2016-06-13 13:11:29
Original
894 people have browsed it

php的一个数组问题
如果一个数组$a[1]=$item(为一个数组),那么还能a[1]["var"][]=$item吗???

------解决方案--------------------
当然可以

PHP code
$item = array('a' =>'b');//$item 为一个数组
$a[1] = $item;
$a[1]["var"][] = $item;

print_r($a); <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!