open_in_new
content_copy
if (array_unique($allvalues) === array('foobar')) { // all values in array are "foobar" }