|
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]
|