<?php
$text = '+48(068) 204-19-24 мой телефон' ;
$regul = '/[0-9]/' ;
//var_dump ($vivod);
//print_r ($vivod);
$nol = $vivod [ 0 ] [ 0 ] ;
$qqq = $vivod [ 0 ] [ 1 ] ;
$www = $vivod [ 0 ] [ 2 ] ;
$eee = $vivod [ 0 ] [ 3 ] ;
$rrr = $vivod [ 0 ] [ 4 ] ;
$ttt = $vivod [ 0 ] [ 5 ] ;
$yyy = $vivod [ 0 ] [ 6 ] ;
$uuu = $vivod [ 0 ] [ 7 ] ;
$iii = $vivod [ 0 ] [ 8 ] ;
$ooo = $vivod [ 0 ] [ 9 ] ;
$ppp = $vivod [ 0 ] [ 10 ] ;
$aaa = $vivod [ 0 ] [ 11 ] ;
$sss = $vivod [ 0 ] [ 12 ] ;
$ddd = $vivod [ 0 ] [ 13 ] ;
$fff = $vivod [ 0 ] [ 14 ] ;
if ( ( $vivod [ 0 ] [ 0 ] == 8 ) && ( count ( $vivod , COUNT_RECURSIVE
) != 12 ) ) { echo "Проверьте количество цифр в номере, у вас номер начинается на 8\n " ; } elseif ( ( $vivod [ 0 ] [ 0 ] == 3 ) && ( count ( $vivod , COUNT_RECURSIVE
) != 13 ) ) { echo "Проверьте количество цифр в номере, у вас номер начинается на +3$qqq \n " ; } elseif ( ( $vivod [ 0 ] [ 0 ] == 0 ) && ( count ( $vivod , COUNT_RECURSIVE
) != 11 ) ) { echo "Проверьте количество цифр в номере, у вас номер начинается на 0$qqq $www \n " ; } if ( ( $vivod [ 0 ] [ 0 ] == 8 ) && ( count ( $vivod , COUNT_RECURSIVE
) == 12 ) ) { echo "ваш номер на 8 будет $nol $qqq $www $eee $rrr $ttt $yyy $uuu $iii $ooo $ppp $aaa \n " ; } elseif ( ( $vivod [ 0 ] [ 0 ] == 3 ) && ( count ( $vivod , COUNT_RECURSIVE
) == 13 ) ) { echo "ваш номер на 8 будет $qqq $www $eee $rrr $ttt $yyy $uuu $iii $ooo $ppp $aaa \n " ; } elseif ( ( $vivod [ 0 ] [ 0 ] == 0 ) && ( count ( $vivod , COUNT_RECURSIVE
) == 11 ) ) { echo "ваш номер на 8 будет 8$nol $qqq $www $eee $rrr $ttt $yyy $uuu $iii $ooo $ppp $aaa \n " ; } else { echo "Проверьте правильность региона номера телефона. Ваш номер начинается на $nol " ; }
?>
PD9waHAKZXJyb3JfcmVwb3J0aW5nICgtMSk7CiR0ZXh0ID0gJys0OCgwNjgpIDIwNC0xOS0yNCDQvNC+0Lkg0YLQtdC70LXRhNC+0L0nOwokcmVndWwgPSAnL1swLTldLyc7CiR2aXZvZCA9IGFycmF5KCk7CnByZWdfbWF0Y2hfYWxsICgkcmVndWwsICR0ZXh0LCAkdml2b2QpOwovL3Zhcl9kdW1wICgkdml2b2QpOwovL3ByaW50X3IgKCR2aXZvZCk7CiRub2wgPSAkdml2b2RbMF1bMF07CiRxcXEgPSAkdml2b2RbMF1bMV07CiR3d3cgPSAkdml2b2RbMF1bMl07CiRlZWUgPSAkdml2b2RbMF1bM107CiRycnIgPSAkdml2b2RbMF1bNF07CiR0dHQgPSAkdml2b2RbMF1bNV07CiR5eXkgPSAkdml2b2RbMF1bNl07CiR1dXUgPSAkdml2b2RbMF1bN107CiRpaWkgPSAkdml2b2RbMF1bOF07CiRvb28gPSAkdml2b2RbMF1bOV07CiRwcHAgPSAkdml2b2RbMF1bMTBdOwokYWFhID0gJHZpdm9kWzBdWzExXTsKJHNzcyA9ICR2aXZvZFswXVsxMl07CiRkZGQgPSAkdml2b2RbMF1bMTNdOwokZmZmID0gJHZpdm9kWzBdWzE0XTsKCmlmICgoJHZpdm9kWzBdWzBdID09IDgpICYmIChjb3VudCgkdml2b2QsIENPVU5UX1JFQ1VSU0lWRSkhPSAxMikpIHtlY2hvICLQn9GA0L7QstC10YDRjNGC0LUg0LrQvtC70LjRh9C10YHRgtCy0L4g0YbQuNGE0YAg0LIg0L3QvtC80LXRgNC1LCDRgyDQstCw0YEg0L3QvtC80LXRgCDQvdCw0YfQuNC90LDQtdGC0YHRjy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