#26334 [Ana]: global and static keywords

From: Date: Thu, 20 Nov 2003 17:28:07 +0000
Subject: #26334 [Ana]: global and static keywords
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969356996@lists.php.net to get a copy of this message
ID: 26334 Updated by: philip@php.net Reported By: christian at freemails dot at Status: Analyzed Bug Type: Documentation problem PHP Version: Irrelevant New Comment: I thought I fixed this here: http://cvs.php.net/diff.php/phpdoc/en/language/variables.xml?r1=1.67&r2=1.68 Why doesn't the following pick this up? <sect2 id="language.variables.scope.global"> This is related to bug #16234 Previous Comments: ------------------------------------------------------------------------ [2003-11-20 12:18:04] goba@php.net 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. ------------------------------------------------------------------------ [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

« previous php.doc (#969356996) next »