note 99808 added to control-structures.if

From: Date: Wed, 08 Sep 2010 12:19:34 +0000
Subject: note 99808 added to control-structures.if
Groups: php.notes 
Request: Send a blank email to php-notes+get-172375@lists.php.net to get a copy of this message
Please note this: Variables with an integervalue will return true if compared to a string: <?php $c = 0; echo ($c == 'hr') ? 'true' : 'false' . "\n"; # will print true php> ---- Server IP: 217.160.235.204 Probable Submitter: 94.218.182.147 ---- Manual Page -- http://www.php.net/manual/en/control-structures.if.php Edit -- https://master.php.net/note/edit/99808 Del: integrated -- https://master.php.net/note/delete/99808/integrated Del: useless -- https://master.php.net/note/delete/99808/useless Del: bad code -- https://master.php.net/note/delete/99808/bad+code Del: spam -- https://master.php.net/note/delete/99808/spam Del: non-english -- https://master.php.net/note/delete/99808/non-english Del: in docs -- https://master.php.net/note/delete/99808/in+docs Del: other reasons-- https://master.php.net/note/delete/99808 Reject -- https://master.php.net/note/reject/99808 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172375) next »