摘要: //递归返回字符串键名全为小写或大写的数组function recurse_array_change_key_case(&$input, $case = CASE_LOWER){ if(!is_array($input)) return; foreach($input as $key => $val) { //1 if($case == CASE_UPPER) { $newkey = strtoupper($key); } //0 elseif($case == CASE_LOWER) { $newkey = strtolower($key); } if($newkey != $ 阅读全文
posted @ 2014-04-10 16:07 一枪把世界杀了 阅读(244) 评论(0) 推荐(0) 编辑