RE: [PHP] remove a key from an array

From: Date: Sat, 03 May 2003 15:04:45 +0000
Subject: RE: [PHP] remove a key from an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146266@lists.php.net to get a copy of this message
just tried it unset($_POST['password']) didnt work :\ -----Original Message----- From: Ernest E Vogelsinger [mailto:ernest@vogelsinger.at] Sent: Saturday, May 03, 2003 11:56 PM To: dan rossi Cc: Php-General Subject: Re: [PHP] remove a key from an array At 16:52 03.05.2003, dan rossi said: --------------------[snip]-------------------- >hi guys i have a quick question , in my error handling i have given it an >option to return post vars in a session variable when i am triggering an >error to return back to the form with the error message , anyway from there >i can loop through the session variable and return back to the form the >values , anyway i would like to remove the password values out of this i was >wonderinf how i could remove these keys from the post array ? --------------------[snip]-------------------- unset($arrayvar[$keyvar]); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#146266) next »