note 110080 rejected from control-structures.if by googleguy

From: Date: Mon, 17 Sep 2012 13:37:34 +0000
Subject: note 110080 rejected from control-structures.if by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190847@lists.php.net to get a copy of this message
Note Submitter: k at isr dot hu ---- Regarding bimal at sanjaal dot com's question (07-Jul-2011 02:21): 1) '13_2' == NUMBER is true, because You compare a string to a number, so the string gets converted to a number (see type conversion), resulting in (int) 13 == 13. 2) '13_2' == "{$number}" is false, because the double quotes convert the int 13 to a string ('13'), resulting in "13_2 " != '13'.

« previous php.notes (#190847) next »