note 23817 deleted from function.is-int by dams
| From: | dams@php.net | Date: | Tue, 30 Jul 2002 00:35:19 +0000 |
| Subject: | note 23817 deleted from function.is-int by dams | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33928@lists.php.net to get a copy of this message | ||
is_int is not working properly. Here is the working one:
function isint($my_value)
{
for($i=0;$i<strlen($my_value);$i++)
{
$control=0;
for($k=-9;$k<10;$k++)
{
if(!strcmp($my_value[$i],$k))
$control=1;
}
if(!$control)
{
return false;
break;
}
}
return true;
}
caglar