$array = array(“אני”, “אוהב”, “לשחק”); if (in_array(“נפשי”, $array)) { return “פסיכולוג”; } else { return “”; }