note 484 deleted from control-structures by jimw
| From: | jimw@php.net | Date: | Thu, 20 Dec 2001 23:11:04 +0000 |
| Subject: | note 484 deleted from control-structures by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23546@lists.php.net to get a copy of this message | ||
Like C the comparison (==) not the assignment (=) operator must
be used in a php3 if statement.
<p>
<b>Incorrect:</b>
<pre>
if ( $a = $b)
</pre>
<p>
<b>Correct:</b>
<pre>
if ( $a == $b)
</pre>