note 31090 deleted from function.settype by tix
| From: | tix@php.net | Date: | Wed, 09 Apr 2003 13:58:48 +0000 |
| Subject: | note 31090 deleted from function.settype by tix | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-46412@lists.php.net to get a copy of this message | ||
can you explain me that ??? (php 4.2.0)
$test=1;
echo gettype($test);
if(settype($test,"integer")==$test) echo "equal";
else echo "different";
output: integer equal
---------------------------------------------------
$test=0;
echo gettype($test);
if(settype($test,"integer")==$test) echo "equal";
else echo "different";
output: integer different
Why 0 is not an integer ?