PHP array function array_PHP tutorial

WBOY
Release: 2016-07-13 10:42:18
Original
823 people have browsed it

1. Grammar

array(key=>value)


2. Example

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


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);?>...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template