Home > Backend Development > PHP Tutorial > PHP生手,求教大神!

PHP生手,求教大神!

WBOY
Release: 2016-06-13 12:31:52
Original
796 people have browsed it

PHP新手,求教大神!!


下面是一段PHP的代码:

$a=array("name" => ($d = array("cat")) ,"Monday" =>( $c = array("dog") ));
array_push($d,"Horse","Bird");
print_r ($a);
?>


运行的结果是:


我想知道 我用了array_push 函数 可是为啥 “Horse” "Bird" 这两个值输出的时候没有吖?
应该怎么改一下才能有这两个追加的值呢??
谢谢!! 

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