September 24th, 2000, 01:24 AM
this works well enough when all the elements in $HTTP_POST_VARS are scalars, but it doesn't work so hot if one or more of them is an array:
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
So what I need is an easy way to tell if "$val" is an Array so that I can do something similar to each of its elements in turn. Thanks in advance.
September 24th, 2000, 04:04 AM
love those manuals...
(PHP3 <= 3.0.16, PHP4 )
is_array -- Finds whether a variable is an array
int is_array (mixed var)
Returns true if var is an array, false otherwise.
September 24th, 2000, 11:34 AM