You are here: Re: what is the meaning « PHP Programming Language « IT news, forums, messages
Re: what is the meaning

Posted by Thomas Mlynarczyk on 11/29/06 17:07

Also sprach Jerry Stuckle:

> I don't think it actually sets $GLOBALS['myVar'] to null, but I could
> be wrong.

Well, it seems that $GLOBALS['myVar'] is "set" somehow. At least isSet()
says so, I think. What's important to me here is that I can use something
like

global $myVar;
$this->myVar = is_int( $myVar ) ? $myVar : 0;

instead of

$this->myVar = isSet( $GLOBALS['myVar'] ) && is_int( $GLOBALS['myVar'] )
? $GLOBALS['myVar'] : 0;

> I use globals very rarely.

So do I. Just for configuration variables.

Greetings,
Thomas

 

Navigation:

[Reply to this 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

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