这篇文章介绍的内容是关于php 数组函数 ,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下
<?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $result=array_flip($a1); print_r($result); ?>
Array ( [red] => a [green] => b [blue] => c [yellow] => d )
相关推荐:
以上就是php 数组函数 的详细内容,更多请关注php中文网其它相关文章!
Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号