note 36793 rejected from function.settype by vincent
| From: | vincent@php.net | Date: | Wed, 22 Oct 2003 16:52:04 +0000 |
| Subject: | note 36793 rejected from function.settype by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59139@lists.php.net to get a copy of this message | ||
Note Submitter: shixinzeng@sjtu.edu.cn
----
I don't think this function is valuable either. I even don't know when it will fail. I
tried these codes:
<?php
$test = "string";
if(settype($test,'integer'))
echo "successful\n $test\n";
else
echo "failed\n";
?>
//output:
successful
0
Why doesn't it fail?