Home > php教程 > php手册 > PHP数组函数array

PHP数组函数array

WBOY
Release: 2016-06-21 08:48:41
Original
787 people have browsed it

1、语法

array(key=>value)


2、实例

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




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