function containLetters($str, $source){ $arr = str_split($str); $jumlah_huruf = count(array_unique($arr)); $count = 0; foreach(array_unique($arr) as $r) if(stripos($source, $r) !== false ) $count++; $ada_semua = $count == $jumlah_huruf ? true:false; return $ada_semua;