"pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>"/> "pear", "c" => "orange", "d" => "peach"); print_r ($fruit) ;?>">

Home  >  Article  >  Backend Development  >  PHP array function array_PHP tutorial

PHP array function array_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:42:18822browse

1. Grammar

array(key=>value)


2. Example

<?php
   $fruit=array("a"=>"apple","b"=>"pear","c"=>"orange","d"=>"peach");
   print_r($fruit);
?> 


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/664276.htmlTechArticle1. Syntax array (key=>value) 2. Example "apple", "b"=>"pear ","c"=>"orange","d"=>"peach"); print_r($fruit);?>...
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