Re: Documentation for VAR

From: Date: Fri, 22 Apr 2005 15:20:39 +0000
Subject: Re: Documentation for VAR
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-213671@lists.php.net to get a copy of this message
Hello Satyam, Friday, April 22, 2005, 3:59:38 PM, you wrote: S> I've been going through the manual and haven't found 'var' S> documented anywhere, as far as I found, it is just used, and that's S> it. It seems it first appears when it talks about Classes, and it S> is just used in the examples as if everyone knew what var is S> supposed to do. It's a "constant initializer" - which is both an accurate and misleading title at the same time :) It will initialise a variable to be constant through-out your entire class (meaning any method can access it) but unlike true PHP constants (those created with define) the value of the variable can be manipulated from just about anywhere. It is of course PHP4 only and is depreciated in PHP5. Best regards, Richard Davey -- http://www.launchcode.co.uk - PHP Development Services "I do not fear computers. I fear the lack of them." - Isaac Asimov

« previous php.general (#213671) next »