php str Jackdaws love my bg sphinx of quart preg_match_all A-z strtolo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<?php
$str = "Jackdaws love my bg sphinx of quart.";
preg_match_all("/[A-z]{1}/", strtolower($str), $letters);
$counters = [];
foreach($letters[0] as $key=>$value){
$counters[$value] = 1;
}
if(count($counters) == 25){
echo "Является.";
}else{
echo "Не является.";
}