Hi,
I'm looking to run a couple test on the array of values I'm passing to my cart system before I actually insert them in the cart. I have this funciton:
array_filter($POST['add_qty'],"is_numeric") != $POST['add_qty'])
That works to ensure that it's actually numbers they are trying to enter in the cart instead of just letters. However, I also want to check that all the values are positive, so they can't enter negative quantities. So is there something like this:
array_filter($POST['add_qty']," ??? ") != $POST['add_qty'])
... that I could add? I tried putting in "is_positive" in there, but that didn't work. Is there something else?