I want to use the following function the test the array elements,
if all element is number return true, otherwise false;
but the command marked, it print out only the first char of every strings in
the array;
can help?

ie: ++0++ for 0.234

 function check_int_float($array){
      $result=true;

   for($i=0; $i<sizeof($array); $i++){
     echo "++".$array[$i]."++";            <<<==================
    if($array[$i]!=""){
  if(is_numeric($array[$i])){
      $result=true;
     }else{
      $result=false;
   break;
  }//if
    }//if
    }//foreach
 return $result;
 }

--
Sincerely your;

pei_world ( .::IT::. )






-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to