Re: number function

From: Date: Thu, 20 Mar 2003 22:47:29 +0000
Subject: Re: number function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140501@lists.php.net to get a copy of this message
hi thx for the last question I have following function, I use it the check all the elements in the array whether numeric or not. but I get the output : ++l++* and ++0++, the first char in the string =============================================================== function check_int_float($array){ $result=true; for($i=0; $i<sizeof($array); $i++){ echo "++".$array[strlen($array)]."++"; if($array[$i]!=""){ if(isdigit($array[$i]) && $array[$i]!="."){ $result=true; }else{ $result=false; break; }//if }//if }//foreach return $result; } ======================================================== -- Sincerely your; pei_world ( .::IT::. ) "Pei_world" <pei_world@hotmail.com> wrote in message news:20030320222527.88789.qmail@pb1.pair.com... > anyone how to write a good number valid function? > regonise numbers like: real int > > > > > > -- > Sincerely your; > > pei_world ( .::IT::. ) > > > > > > >

« previous php.general (#140501) next »