Re: Where am i screwing up?
| From: | Curt Zirzow | Date: | Thu, 31 Jul 2003 14:58:28 +0000 |
| Subject: | Re: Where am i screwing up? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157742@lists.php.net to get a copy of this message | ||
* Thus wrote John Manko (xerid@adelphia.net):
> Can someone correct me on this if i'm wrong.......
>
> try (meaning, I think that $vars as $keys will put the value into $key,
> not the key itself):
>
> foreach ($vars as $key=>$value) // clear all previous sessions
> {
> if(isset($_SESSION['$key']))
> {
> unset($_SESSION['$key']);
> }
> }
That is correct.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."