Reply to Re: [PHP] Documentation for VAR

Your name:

Reply:


Posted by Richard Davey on 04/22/05 18:20

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация