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

首页  >  文章  >  后端开发  >  PHP数组函数array_PHP教程

PHP数组函数array_PHP教程

WBOY
WBOY原创
2016-07-13 10:42:18824浏览

1、语法

array(key=>value)


2、实例

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


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/664276.htmlTechArticle1、语法 array(key=>value) 2、实例 "apple","b"=>"pear","c"=>"orange","d"=>"peach"); print_r($fruit);?>...
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn