I would use foreach instead of for, your function does not guarantie
checking all elements and also checks elements that might not have been set.
pei_world wrote:
I want to use the following function the test the array elements,
if all element is number return true, otherwise false;
but the comm
- Original Message -
From: "pei_world" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 20, 2003 4:30 PM
Subject: [PHP] function for $array
> I want to use the following function the test the array elements,
> if all element is number return
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;
3 matches
Mail list logo