ID: 26334
Updated by: [EMAIL PROTECTED]
-Summary: php.net/global does not work
Reported By: christian at freemails dot at
-Status: Open
+Status: Analyzed
-Bug Type: Website problem
+Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
There is no global() function in PHP. There is a global keyword. It is
like return or continue. It is not a function. Some keywords are
accessible with URL shortcuts. It might be a good idea to let global be
accessed this way.
Note to the doc guys: possible to fix this by using
id="language.keyword.global" and id="language.keyword.static" in the
XML files.
Previous Comments:
------------------------------------------------------------------------
[2003-11-20 11:40:51] christian at freemails dot at
Description:
------------
www.php.net/global
does not work. But a global-function exists in PHP.
example of the global function:
function foobar() {global $foo; /* this makes $foo aviable here */}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26334&edit=1