$val) { $result[ $key_fn($key) ] = $val_fn($val); } return $result; } /** strip slashes from any strings, deeply checking arrays. */ function stripslashes_deep( $val ) { return (is_string($val) ? stripslashes($val) : (is_array($val) ? array_map_keys_vals( "stripslashes_deep", "stripslashes_deep", $val ) : (true ? $val : (die("stripslashes_deep: Shouldn't have reached this line!\n") // should be: `threw new Exception(...)` )))); // parens are required, for nested conditional-operator :-( } ?>