RE: [PHP] remove a key from an array
| From: | dan rossi | Date: | Sat, 03 May 2003 20:20:04 +0000 |
| Subject: | RE: [PHP] remove a key from an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146299@lists.php.net to get a copy of this message | ||
yes why ?
-----Original Message-----
From: John W. Holmes [mailto:holmes072000@charter.net]
Sent: Sunday, May 04, 2003 1:37 AM
To: 'dan rossi'; 'Ernest E Vogelsinger'
Cc: 'Php-General'
Subject: RE: [PHP] remove a key from an array
> 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]);
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php