Re: removing element from array
| From: | Chris Lee | Date: | Mon, 19 Mar 2001 14:51:49 +0000 |
| Subject: | Re: removing element from array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44583@lists.php.net to get a copy of this message | ||
unset()
<?php
$test[0] = 0;
$test[1] = 1;
$test[2] = 2;
$test[3] = 3;
foreach($test as $pos => $val)
echo "$val<br>";
unset($test[2]);
foreach($test as $pos => $val)
echo "$val<br>";
?>
--
Chris Lee
lee@mediawaveonline.com
""Alexander Gräf"" <alex@alex-connect.com> wrote in message news:995d13$cfl$1@toye.p.sourceforge.net...
shame of me for asking that a stupid question, but i don't know how to
remove an element off an associative array. can anybody please tell me, i
didn't find anything about that in faqs or manuals.
thank you
--
alex@alex-connect.com
+49 9721 188848
+49 171 370 97 15
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net