- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
<?php
$file1 = 'D:\file.txt';
$fo1 = fopen($file1,"r");
$array = array(1=>'б',2=>'в',3=>'г',4=>'д',5=>'ж',6=>'з',7=>'й',8=>'к',9=>'л',10=>'м',11=>'н',12=>'п',
13=>'р',14=>'с',15=>'т',16=>'ф',17=>'х',18=>'ц',19=>'ч',20=>'ш',21=>'щ');
$shetchik = 0;
$t=0;
while (!feof($fo1))
{
$line2 = fgets($fo1);
$line = strtolower($line2);
for ($j=0;$j<strlen($line);$j++)
{
$char = $line[$j];
if(in_array($line[$j],$array))
{
$index = array_keys($array,$line[$j]);
$int = $index[0];
if ($int-$t>=1)
{
$shetchik++;
$t = $int;
}
else
{
$t=0;
$shetchic=0;
}
if ($shetchik==4) echo "$line2<br>";
}
}
}
?>