note 90465 added to control-structures.if
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 23 Apr 2009 18:12:05 +0000 |
| Subject: | note 90465 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153630@lists.php.net to get a copy of this message | ||
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 ){}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 196.35.158.178
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/90465
Del: integrated -- https://master.php.net/note/delete/90465/integrated
Del: useless -- https://master.php.net/note/delete/90465/useless
Del: bad code -- https://master.php.net/note/delete/90465/bad+code
Del: spam -- https://master.php.net/note/delete/90465/spam
Del: non-english -- https://master.php.net/note/delete/90465/non-english
Del: in docs -- https://master.php.net/note/delete/90465/in+docs
Del: other reasons-- https://master.php.net/note/delete/90465
Reject -- https://master.php.net/note/reject/90465
Search -- https://master.php.net/manage/user-notes.php