1$os = array("Mac", "NT", "Irix", "Linux");
2if (in_array("Irix", $os)) {
3 echo "Got Irix";
4}
5if (in_array("mac", $os)) {
6 echo "Got mac";
7}
1$array = ["they has mystring in it", "some", "other", "elements"];
2if (stripos(json_encode($array),'mystring') !== false) {
3echo "found mystring";
4}
5
1$string = 'my domain name is website3.com';
2foreach ($owned_urls as $url) {
3 //if (strstr($string, $url)) { // mine version
4 if (strpos($string, $url) !== FALSE) { // Yoshi version
5 echo "Match found";
6 return true;
7 }
8}
9echo "Not found!";
10return false;
11