Home  >  Article  >  Backend Development  >  PHP array definition and usage examples_PHP tutorial

PHP array definition and usage examples_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:34:54841browse

This article mainly introduces PHP array definition and usage examples (php array definition method), friends in need can refer to it

This is a PHP example about arrays. It briefly explains the basic use of arrays. Comments are added to the example. ​ ​ The code is as follows: "Fruit","b"=>"Car"); //You can reference it like this $ex["a"];//The corresponding value is fruit $ex["b"];//The corresponding value is the car //You can also create such a key-value array ?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/747557.htmlTechArticleThis article mainly introduces PHP array definition and usage examples (php array definition method), friends who need it can For reference, this is a PHP example about arrays, which briefly explains the array...
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