我有很长的路要走,有许多国名。 因此,阵列看着这样的情况:
array( Afghanistan , Bulgaria , United States , Bulgaria , ...)
I need to count the number of times each country appears in the string. Is there a quick and nifty way of doing this, i.e., some kind of magical preg_match_all which receives an array of patterns, or must I iterate through all countries?