note 23817 added to function.is-int

From: Date: Mon, 29 Jul 2002 15:59:25 +0000
Subject: note 23817 added to function.is-int
Groups: php.notes 
Request: Send a blank email to php-notes+get-33873@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 -- http://www.php.net/manual/en/function.is-int.php http://master.php.net/manage/user-notes.php?action=edit+23817 http://master.php.net/manage/user-notes.php?action=delete+23817 http://master.php.net/manage/user-notes.php?action=reject+23817

« previous php.notes (#33873) next »