note 56952 deleted from language.control-structures by nlopess
| From: | nlopess@php.net | Date: | Fri, 30 Sep 2005 08:31:33 +0000 |
| Subject: | note 56952 deleted from language.control-structures by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96029@lists.php.net to get a copy of this message | ||
Note Submitter: kaszpir at gmail dot com
----
notice the behaviour :
<?php
$a = "string";
$b = 0;
if($a == $b) echo "true";else echo "false";
?>
in result you will get "true".
for more info see http://www.php.net/manual/pl/types.comparisons.php
thanks goes to plast from http://forum.quakeworld.pl/ for
noticing this behavour.