Marcus
Well-known member
Currently I do this, to check if there are values (here: "option x") within an array (here $user...):
if(count(array_diff(array("option 1", "option 2","option 3"), $user['customFields']['cake']))<3)
I use count()<count($check_array) to check once a value was found. Do you have a better and more straight forward solution for this?
if(count(array_diff(array("option 1", "option 2","option 3"), $user['customFields']['cake']))<3)
I use count()<count($check_array) to check once a value was found. Do you have a better and more straight forward solution for this?