Grasp.Today
摘要: 一、数组操作的基本函数数组的键名和值array_values($arr); 获得数组的值 array_keys($arr); 获得数组的键名 array_flip($arr); 数组中的值与键名互换(如果有重复前面的会被后面的覆盖) in_array("apple",$arr); 在数组中检索apple array_search("apple",$arr); 在数组中检索apple ,如果存在返回键名 array_key_exists("apple",$arr); 检索给定的键名是否存在数组中 isset($arr[apple]): 阅读全文
posted @ 2013-09-13 14:23 gaohj 阅读(474) 评论(0) 推荐(0) 编辑