G'day all. I'm trying to hack some code, and I've run into a goofy problem.
I have a conditional that looks like this: if ((is_array($HTTP_POST_VARS['cart_quantity'])) && (is_array($HTTP_POST_VARS['products_id']))){ //do stuff } The evaluation returns false. What makes this confusing is just before this block, for debugging purposes, I have the following: echo $HTTP_POST_VARS['cart_quantity']; echo $HTTP_POST_VARS['products_id']; Both of them return the string "Array", indicating to me that they are arrays. Now, if they're both arrays, and the conditional is checking to see if they're both arrays, wouldn't it make sense that it should evaluate to "true"? Thanks for your help. ----------------------------- Jason Jacobs Factory7, LLC Support a Constitutional Amendment to protect the Pledge of Allegiance and National Motto. Go to www.wepledge.com