这篇文章介绍的内容是关于php 数组函数 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
PHP数组函数
1. array_flip() 反转数组中所有的键以及它们关联的值
"red","b"=>"green","c"=>"blue","d"=>"yellow");
$result=array_flip($a1);
print_r($result);
?>输出结果:
Array ( [red] => a [green] => b [blue] => c [yellow] => d )
相关推荐:











