note 106005 deleted from mysqli-result.fetch-assoc by danbrown

From: Date: Mon, 03 Oct 2011 13:13:00 +0000
Subject: note 106005 deleted from mysqli-result.fetch-assoc by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183605@lists.php.net to get a copy of this message
Note Submitter: sinthia at fireflowdesign dot com ---- The style of the inline assignment statement: while ($row = $result->fetch_assoc()) {//do something;} Will generate a warning in Zend Studio. I think in the interest on unambiguous code the example should read: while (($row = $result->fetch_assoc())==TRUE) {//do something;} This style makes the intent clearer and does not irritate my lint program.

« previous php.notes (#183605) next »