note 24533 rejected from function.unset by jmcastagnetto

From: Date: Tue, 20 Aug 2002 22:52:19 +0000
Subject: note 24533 rejected from function.unset by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35279@lists.php.net to get a copy of this message
Look at this example: <? $test = array('one', 'two', 'three'); for ($i = 0; $tmp = $test[$i]; $i++) { echo $test[$i] . " "; } echo " - "; $id = array_search("two", $test); unset($test[$id]); for ($i = 0; $tmp = $test[$i]; $i++) { echo $test[$i] . " "; } ?> results: one two three - one The function unset() unsets the given element and all elements after.

« previous php.notes (#35279) next »