protected internalUnset ( array &$array, mixed $key ) | ||
$array | array | The array to use -- will always be based on $this->content but can be used recursively |
$key | mixed | The key to unset |
protected function internalUnset(array &$array, $key)
{
$parts = explode(".", $key);
while (count($parts) > 1) {
$part = array_shift($parts);
if (isset($array[$part]) && is_array($array[$part])) {
$array =& $array[$part];
}
}
unset($array[array_shift($parts)]);
}