note 55765 deleted from ref.session by nlopess

From: Date: Fri, 12 Aug 2005 16:00:09 +0000
Subject: note 55765 deleted from ref.session by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93509@lists.php.net to get a copy of this message
Note Submitter: webmaster AT cafe-clope DOT net ---- the following: <?php $_SESSION = array_merge($_SESSION, $myvars) ; ?> unregisters any variable in $_SESSION array, while the following : <?php foreach($myvars as $key => $value) $_SESSION[$key] = $value ; ?> does not. I don't see the point. What should be avoided using this weird $_SESSION array ?

« previous php.notes (#93509) next »