This article describes the example of php array index and key value operation skills. Share it with everyone for your reference. The details are as follows:
?
3
4
5
|
$array = array("a", "b","c"); //Define array
$array[] = "Simon"; //Add a new array element
print_r($array); //Output array
Previous article:Example of how to write a singleton class in PHP_PHP tutorial
Next article:Apache php mysql environment configuration method under windows, apachemysql_PHP tutorial
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
Latest Articles by Author
Latest Issues
When adding sublime3 to compile system php, use the PHP toolbox, cmd php -v is useless
From 1970-01-01 08:00:00
0
0
0
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|