Blogger Information
Blog 16
fans 0
comment 0
visits 18054
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP获取数组的键名与键值
忧郁之子的博客
Original
1968 people have browsed it
array_keys($array) //返回所有键名
array_values($array) //返回所有键值
$result=array_reverse($input);       //将数组颠倒,不保留键名
$result_keyed=array_reverse($input,true);    //将数组颠倒,保留键名
array_keys($array,"blue");       //返回值为blue的键名

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!