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

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

WBOY
Release: 2016-06-06 19:59:59
Original
971 people have browsed it

?php$array = array("a", "b","c");//定义数组$array[] = "Simon";//增加一个新的数组元素print_r($array);//输出数组? ?php$array = array("a", "b","c");//定义数组$array[9] = "Simon";//增加一个新的数组元素print_r($array);//输出数组? ?php//创建一个

 

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template