UNSET & Arrays
| From: | Jason Caldwell | Date: | Fri, 07 Jun 2002 01:04:47 +0000 |
| Subject: | UNSET & Arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-101047@lists.php.net to get a copy of this message | ||
i'm trying to unset an array element within my array --
my array looks like;
$foo[0][magazine]
$foo[0][subscription]
$foo[0][term]
$foo[0][rate]
$foo[1][magazine]
$foo[1][subscription]
$foo[1][term]
$foo[1][rate]
and so forth --
when i call unset($foo[0]) for example, the entire array goes away, not just
the [0] elements.
how can i unset a multi-dimensional array? i have no problems using unset
single-dimension arrays.
thanks
jason