delete part of array
| From: | Sebastian | Date: | Thu, 13 Jan 2005 00:22:20 +0000 |
| Subject: | delete part of array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-206256@lists.php.net to get a copy of this message | ||
how do i delete keys from an array if it has no values?
eg, this:
[name] => Array
(
[0] => grape
[1] => apple
[2] =>
[3] => orange
[4] =>
[5] => cherry
)
to:
[name] => Array
(
[0] => grape
[1] => apple
[2] => orange
[3] => cherry
)