note 90465 deleted from control-structures.if by danbrown
| From: | danbrown@php.net | Date: | Thu, 23 Apr 2009 18:18:12 +0000 |
| Subject: | note 90465 deleted from control-structures.if by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153631@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
if you wanna check exactly then
if ( $a == $b ) will not do the trick
as if you define
<?php
$a = 0;
$b = '0';
?>
php will see them as the same with ==
you will need to do
<?php
if ( $a === $b ){}
?>