Re: [PHP4BETA] broken or probably not implement!

From: Date: Fri, 18 Feb 2000 13:53:11 +0000
Subject: Re: [PHP4BETA] broken or probably not implement!
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-10451@lists.php.net to get a copy of this message
Zeev Suraski wrote: > > > > or is so 'weak' that your statement above is equivalent to > > > > ( $str = 0 ) or 1 > > > > although you wanted > > > > $str = ( 0 or 1 ) // =1 > > Actually that's not it, ($str=0 or 1) equals 1. yes , but $str is set to 0 in this case, thats what i wanted to express <? print "( \$str= 0 or 1 ) is " . ( $str= 0 or 1 ) . " ; \$str is $str\n"; print "( (\$str= 0 ) or 1 ) is " . ( ($str= 0 ) or 1 ) . " ; \$str is $str\n"; print "( \$str= ( 0 or 1 )) is " . ( $str= ( 0 or 1 )) . " ; \$str is $str\n"; ?> gives ( $str= 0 or 1 ) is 1 ; $str is 0 ( ($str= 0 ) or 1 ) is 1 ; $str is 0 ( $str= ( 0 or 1 )) is 1 ; $str is 1 -- Hartmut Holzgraefe hartmut@six.de http://www.six.de Besuchen Sie Six auf der CeBIT (24.2.-1.3.) in Halle 10, Stand 425, und auf der Hannover-Messe (20.-25.3.) in Halle 14, Stand J50!

« previous php.version4 (#10451) next »