public static function normalize($arr)
  {
    if (!is_array($arr)) {
      return array();
    }

    $normalized = array();
    foreach ($arr as $key => $val) {
      $normalized[strtolower($key)] = $val;
    }
    return $normalized;
  }
public static function normalize($arr)
  {
    if (!is_array($arr)) {
      return array();
    }

    $normalized = array();
    foreach ($arr as $key => $val) {
      $normalized[strtolower($key)] = $val;
    }
    return $normalized;
  }
public static function normalize ( $ arr ) { if ( ! is_array ( $ arr ) ) { return array ( ) ; } $ normalized = array ( ) ; foreach ( $ arr as $ key => $ val ) { $ normalized [ strtolower ( $ key ) ] = $ val ; } return $ normalized ; }
Normalize all keys in an array to lower-case.
@param array $arr
@return array Normalized array.
Normalize all keys in an array to lower - case .