RE: [PHP] remove a key from an array

From: Date: Sat, 03 May 2003 15:36:49 +0000
Subject: RE: [PHP] remove a key from an array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-146275@lists.php.net to get a copy of this message
> just tried it unset($_POST['password']) didnt work :\ Did you say you put it in the session? ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ > 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]);

« previous php.general (#146275) next »