mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
"global" is not a function
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@98121 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
762529d178
commit
24bc34f33c
1 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.4 $ -->
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.session-register">
|
||||
<refnamediv>
|
||||
|
@ -25,8 +25,10 @@
|
|||
<caution>
|
||||
<para>
|
||||
This registers a <emphasis>global</emphasis> variable. If you want to
|
||||
register a session variable inside a function, you need to make sure to
|
||||
make it global using <function>global</function> or use the session
|
||||
register a session variable from within a function, you need to make sure to
|
||||
make it global using the
|
||||
<link linkend="language.variables.scope"><command>global</command></link>
|
||||
keyword or the <varname>$GLOBALS[]</varname> array, or use the special session
|
||||
arrays as noted below.
|
||||
</para>
|
||||
</caution>
|
||||
|
|
Loading…
Reference in a new issue