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

PHP生手,求教大神!

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:31:52828browse

PHP新手,求教大神!!


下面是一段PHP的代码:

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


运行的结果是:


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

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