note 7780 deleted from function.session-register by jimw

From: Date: Tue, 18 Dec 2001 22:21:38 +0000
Subject: note 7780 deleted from function.session-register by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23251@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');

« previous php.notes (#23251) next »