AW: [PHP] Array questions...

From: Date: Wed, 12 Jun 2002 13:10:27 +0000
Subject: AW: [PHP] Array questions...
Groups: php.general 
Request: Send a blank email to php-general+get-101724@lists.php.net to get a copy of this message
hi leon, > > Hello, > > Assume I have the following array: > > $array = array ( > "apple" => "cherry", > "foo" => "bar", > "wom" => "bat" > ); > > How could I easy remove the key and the value of the key > "foo" from that > array? > unset ($array[foo]); > Also, what is the best (and quickest) way to add a key with a > value to the > end of this array? > $array[newkey]=newvalue; > Thanks in advance, > > Leon Mergen > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#101724) next »