From 24bc34f33c8b68411c1eebda7263ec6c375a9109 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Fri, 4 Oct 2002 09:44:35 +0000 Subject: [PATCH] "global" is not a function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@98121 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/session/functions/session-register.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reference/session/functions/session-register.xml b/reference/session/functions/session-register.xml index 208024f08f..09d7c252c6 100644 --- a/reference/session/functions/session-register.xml +++ b/reference/session/functions/session-register.xml @@ -1,5 +1,5 @@ - + @@ -25,8 +25,10 @@ This registers a global variable. If you want to - register a session variable inside a function, you need to make sure to - make it global using global or use the session + register a session variable from within a function, you need to make sure to + make it global using the + global + keyword or the $GLOBALS[] array, or use the special session arrays as noted below.