note 21878 added to function.is-numeric
| From: | soul0 at post-sul dot com | Date: | Thu, 30 May 2002 10:36:26 +0000 |
| Subject: | note 21878 added to function.is-numeric | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31186@lists.php.net to get a copy of this message | ||
what does works:
foreach($vettore_is_number as $temp)
{
if(!is_numeric($temp))
{
$error = true;
}
}
and what does not work:
function numerico($temp)
{
if (!is_numeric($temp))
$error=true;
}
@array_walk
($vettore_is_number,'numerico');
--
http://www.php.net/manual/en/function.is-numeric.php
http://master.php.net/manage/user-notes.php?action=edit+21878
http://master.php.net/manage/user-notes.php?action=delete+21878
http://master.php.net/manage/user-notes.php?action=reject+21878