if (!function_exists('array_change_key_case')) { define("CASE_UPPER",1); define("CASE_LOWER",0); function array_change_key_case($array,$case=CASE_LOWER) { if ($case=CASE_LOWER) { $cmd=strtolower; } elseif ($case=CASE_UPPER) { $cmd=strtoupper; } foreach($array as $key=>$value) { $output[$cmd($key)]=$value; } return $output; }}