cvs: /phpdoc/functions session.sgml
| From: | Andrei Zmievski | Date: | Sat, 27 Nov 1999 21:25:01 +0000 |
| Subject: | cvs: /phpdoc/functions session.sgml | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-13191@lists.php.net to get a copy of this message | ||
andrei Sat Nov 27 16:25:01 1999 EDT
Modified files:
/phpdoc/functions session.sgml
Log:
Expanded docs on session_register(). If anyone wants to rewrite it to be
more clear, feel free.
Index: phpdoc/functions/session.sgml
diff -u phpdoc/functions/session.sgml:1.14 phpdoc/functions/session.sgml:1.15
--- phpdoc/functions/session.sgml:1.14 Tue Nov 23 17:45:50 1999
+++ phpdoc/functions/session.sgml Sat Nov 27 16:25:00 1999
@@ -432,17 +432,23 @@
<refentry id="function.session-register">
<refnamediv>
<refname>session_register</refname>
- <refpurpose>Register a variable with the current session</refpurpose>
+ <refpurpose>Register one or more variables with the current session</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<funcsynopsis>
<funcdef>bool <function>session_register</function></funcdef>
- <paramdef>string <parameter>name</parameter></paramdef>
+ <paramdef>mixed <parameter>name</parameter></paramdef>
+ <paramdef>mixed
+ <parameter><optional>...</optional></parameter></paramdef>
</funcsynopsis>
<para>
- <function>session_register</function> registers the global variable
- named <parameter>name</parameter> with the current session.</para>
+ <function>session_register</function> variable number of
+ arguments, any of which can be either a string holding the
+ variable name or an array consisting of such variable names or
+ other arrays. For each encountered variable name,
+ <function>session_register</function> registers the global
+ variable named by it with the current session.</para>
<para>
This function returns true when the variable is successfully
registered with the session.