array加入新阵列如何宣告?
$data=Array ('id' => 123,'name' => name);
用array_push会出错,请问要怎么宣告?
------解决思路----------------------$a = Array ('id' => 123,'name' => 'name');<br />$a['type'] = 1;
------解决思路----------------------$data['type'] = 1;
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