"John Manko" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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']);
>  }
>  }
This is no good, now it's going to delete $_SESSION['0'] and so on. This top
function seems OK to me as it was, but using $val in stead of $key should be
clearer.

Ivo



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to