RE: [PHP] Alternate Colors in Rows ($r=!$r)

From: Date: Fri, 05 Oct 2007 18:55:03 +0000
Subject: RE: [PHP] Alternate Colors in Rows ($r=!$r)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-262838@lists.php.net to get a copy of this message
[snip] The value of the expression is the value assigned. Since the ! operator will always return a boolean then the assigned value is going to be a boolean. So $r will always contain a boolean for the purposes of the ternary operation. [/snip] And it also work if the statement is not ternary

« previous php.general (#262838) next »