$array = ["they has mystring in it", "some", "other", "elements"]; if (stripos(json_encode($array),'mystring') !== false) { echo "found mystring"; }