Exemple #1
0
 /**
  * Recursive removal of a key from an array
  */
 public static function remove(&$array, $unwantedKey)
 {
     unset($array[$unwantedKey]);
     foreach ($array as &$value) {
         if (is_array($value)) {
             ZuhaSet::remove($value, $unwantedKey);
         }
     }
     return $array;
 }