I have an array that could contain any number of values, some of which may recur.
Example: 1,2,2,5,7,3
How can I write a test in PHP that checks to see if the only values contained in the array are either 1 or 2?
So 1,2,2,1,1,1 would return true.
Meanwhile 1,2,3,1,2,1 would return false.