Nathanmac\Utilities\Parser\Parser::removeValue PHP Метод

removeValue() приватный Метод

Remove a value identified from the key
private removeValue ( &$array, $key )
$array
$key
    private function removeValue(&$array, $key)
    {
        $keys = explode('.', $key);
        while (count($keys) > 1) {
            $key = array_shift($keys);
            if (!isset($array[$key]) || !is_array($array[$key])) {
                return;
            }
            $array =& $array[$key];
        }
        unset($array[array_shift($keys)]);
    }