can you please help me with a such issue: I need to check, if in array, which is passed in $_POST contains some specific value, and if yes - does some stuff.. currently I have:
$count=count($_POST['prcategory']);
if(implode($_POST['prcategory']) == "'Cost Collection'" && $count=1 ){
...do stuff
}
elseif (implode($_POST['prcategory']) == "'Cost Collection'" && $count > 1 )
{
...do other stuff
}
else {.... }
But for the unknown for me reason, when the count is >1, it always goes to the last else option - most probably, it's because I'm not aware, how to properly check, if one of POST values contains my needed value ..
Any suggestions on this?
p.s. all values are passed in quotes, e.g. it's fine, that I have quotes in : 'Cost Collection'