Re: [PHP] Where am i screwing up?

This is a discussion on Re: [PHP] Where am i screwing up? within the PHP General forums, part of the PHP Programming Forums category; * Thus wrote John Manko (xerid@adelphia.net): > Can someone correct me on this if i'm wrong....... > > ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-31-2003
Curt Zirzow
 
Posts: n/a
Default Re: [PHP] Where am i screwing up?

* 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."
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0