Re: [PHP] function for $array

2003-03-21 Thread Marek Kilimajer
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

Fw: [PHP] function for $array

2003-03-20 Thread Kevin Stone
- 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

[PHP] function for $array

2003-03-20 Thread pei_world
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;