Home >php教程 >php手册 >php数组索引与键值的操作技巧

php数组索引与键值的操作技巧

WBOY
WBOYOriginal
2016-06-06 19:59:59958browse

?php$array = array("a", "b","c");//定义数组$array[] = "Simon";//增加一个新的数组元素print_r($array);//输出数组? ?php$array = array("a", "b","c");//定义数组$array[9] = "Simon";//增加一个新的数组元素print_r($array);//输出数组? ?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