Ok, Stupid question here... just trying to do a search in an array to be sure all of the values are numeric, if not, I need to return false. What's the quickest way to do this. This array could be HUGE. By the way, it's not a multi-dimensional array, and doesn't have any sub-arrays within it. It's just a one level array... example:
array(1, 5, 6, 2, 44, 92, 50, string);
This should return false, cause string is one of the values in the array and is not a number. I mean, is there a faster way to do this than using foreach
on the array and using intval
on every value??
Thanks guys :)