note 11051 deleted from function.session-register by jimw
| From: | jimw@php.net | Date: | Tue, 18 Dec 2001 22:25:48 +0000 |
| Subject: | note 11051 deleted from function.session-register by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23258@lists.php.net to get a copy of this message | ||
Here is the way to session_register variable variables:
for ($counter=0;$counter<$max_loop;++$counter)
{
${variable.$counter} = $value_you_want_to_add_and_be_registered;
$session_Variables = "variable$counter";
session_register($session_Variables);
}
In this way you have the variables: $variable0,$variable1,...,$variable"maxloop",
session_registered.