Changes

PHP Operators

213 bytes added, 13:01, 31 May 2007
PHP Comparison Operators
<tr>
<td>==<td>Equal to<td>Checks if first operand equals second<td>$myVar = 10; <br>if ($myVar == 10)<br>echo 'myVar equals 10';</td>
<tr>
<td>===<td>Equal to<td>Checks if first operand equals second in both value and type<td>$myVar = 10;<br>$myString="10"; <br>if ($myVar === $myString)<br>echo 'myVar and myString are same type and value';</td>
</table>