September 2001
Intermediate to advanced
768 pages
32h 45m
English
int session_register(mixed variable_name, [mixed name ...])
Registers session variables.
Returns:
TRUE on success; FALSE on error
Description:
Registers any number of variables and places them in the session. The variable to be registered is passed as a string. Alternatively, a list of variables to be registered can be passed as an array.
Version:
Existing since version 4.0
Example:
session_start();
session_register(array("counter1","counter2"));
echo $counter1;
echo $counter2;
$counter1 = $counter2++;
|
Read now
Unlock full access