|
復(fù)制代碼 代碼如下:
<?php
$a = array("中國人","亞州人","龍王爺","西藏自治區(qū)");
$b[0] = "蘋果";
$b[1] = "蘋果";
$b[2] = "蘋果";
$b[3] = "蘋果";
$b[4] = "蘋果";
$c = array("one" => "中國人","tow" =>"亞州人","three" => "龍王爺","four" => "西藏自治區(qū)");
var_dump($a);
echo "<br />";
var_dump($b);
echo "<br />";
var_dump($c);
?>
php技術(shù):PHP中數(shù)組定義的幾種方法,轉(zhuǎn)載需保留來源!
鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請第一時間聯(lián)系我們修改或刪除,多謝。