The program I use takes items out of a database per query.
<?php myquery(array('region'=>'florida','region'=>'florida','region'=>'florida'));?>
I have regions per example (florida, georgia, delaware, etc.).
After the query it return: more items from one state then the other; nothing; or just one (depending on what users are posting).
Now I would only like to show one (if present) from each state.
I was thing something like this: if (in_array('' '') do this...
But do not know if this is the right function and how to use it.