note 7780 modified in session_register by sas

From: Date: Thu, 17 Aug 2000 19:35:34 +0000
Subject: note 7780 modified in session_register by sas
Groups: php.notes 
Request: Send a blank email to php-notes+get-2217@lists.php.net to get a copy of this message
<pre> don't fall into the same trap as i did by doing $bob= array(); session_register('bob'); and then wonder why $bob always seems to be empty (d'oh!); instead use if (!isset($bob)) {$bob= array();}; session_register('bob'); http://www.php.net/manual/function.session-register.php

« previous php.notes (#2217) next »