RE: [PHP] Alternating Anything

From: Date: Fri, 05 Oct 2007 21:03:04 +0000
Subject: RE: [PHP] Alternating Anything
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-262850@lists.php.net to get a copy of this message
> > its mysterious statements like this that make code fragile, > > imho. i prefer the modulus approach. > > I would have agreed before reading the clarification. Not so sure > now... > > At the risk of semantic nitpicking, and only because I find this > discussion stimulating (pity us poor geeks), I might call "($r=!$r)" > esoteric rather than mysterious, even though I'm the one who asked > the question, suggesting it was a mystery to me. That's why I use: $toggle = !$toggle; or $toggleNameOfWhatIsBeingToggled = !$toggleNameOfWhatIsBeingToggled; _________________________________________________________________ Peek-a-boo FREE Tricks & Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us

« previous php.general (#262850) next »