Hi to all, I have to two fields that have array of accepted and restricted countries for some review.
In the listings of all reviews I would like to create filter that will be search cross two this arrays.
First, we will check if the country is on the list of allowed countries and if it is not on the list of restricted countries. That is, the logic is that if it is not prohibited, it is allowed.
How best to do this?
$accepted_countries = array("United Kingdom", "Canada"); $restricted_countries = array("USA", "Belgium", "Netherlands");
I think it should works with
But how show it in controller, have no idea…