note 8846 added to Logical Operators

From: Date: Sun, 01 Oct 2000 07:38:14 +0000
Subject: note 8846 added to Logical Operators
Groups: php.notes 
Request: Send a blank email to php-notes+get-5767@lists.php.net to get a copy of this message
This cought me off guard perhaps a bug: The && operator takes presidence over the assignment operator = but the 'and' operator does not. while($row=dbFetch($cursor) && $i < 20) $row=(dbFetch($cursor) && i) where while($row=dbFetch($cursor) and $i < 20) $row=(dbFetch($cursor)) http://www.php.net/manual/language.operators.logical.php

« previous php.notes (#5767) next »