Home >php教程 >PHP源码 >php演示数组

php演示数组

PHP中文网
PHP中文网Original
2016-05-26 08:18:471167browse

php代码

<?php
/*
 * array
 */
 
 $arr = array(&#39;one&#39;=>"bananaa",&#39;apple&#39;,&#39;three&#39;=>true,4);
 print_r($arr);
 
 echo &#39;<br/>&#39;;
 
 ksort($arr);
 print_r($arr);
 
 echo &#39;<br/>&#39;;
 echo $arr[1];
 //echo $arr["one"];
 
?>
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