If it's an array, unset it like you would any other item. In theory the same should be true for using it as an object but I don't do the whole iterated objects thing if I can help it. The memory use is significantly higher.
removeAttr($data);
function removeAttr(&$array) {
if (isset($array['@attr']['nowplaying']))
unset($array['WHAT']);
foreach ($array as &$value) {
if (is_array($value)) {
removeAttr($value);
}
}
}
What should I type instead of 'WHAT'?





