标签:style io color ar sp strong on cti bs
array_flip()例子
<?php
$trans = array("a" => 1,
"b" => 1, "c"
=> 2);
$trans = array_flip($trans);
print_r($trans);
?>
答案:
Array ( [1] => b [2] => c )
array_values() 例子
<?php
$array = array("size" => "XL",
"color" => "gold");
print_r(array_values($array));
?>
答案:
Array
(
[0] => XL
[1] =>
gold
)
标签:style io color ar sp strong on cti bs
原文地址:http://www.cnblogs.com/xiaoying1019/p/4090339.html