I need to unset some elements within a multi-dimensional array -- I have no problems unsetting single-dimensional arrays -- however, multi-dim arrays are driving me nuts:
Example:
$foo[0][data]
$foo[0][more]
$foo[0][hmmm]
$foo[1][data]
$foo[1][more]
$foo[1][hmmm]
etc...
When I call UNSET($foo[0]) the entire array goes away! I've tried UNSET($foo[0][data]); UNSET($foo[0][more]); UNSET($foo[0][hmmm]); -- and in each case the entire array is destroyed.
I've also tried it with quotes; ex. UNSET($foo[0]["data"])... etc... same thing -- entire array destroyed.
Anyone got any ideas?
Thanks
Jason