fork(5) download
  1. <?php
  2.  
  3.  
  4.  
  5. $input = "+79164788880";
  6. $check = '!((\\+7)|8)?(\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9](\\W^а-я)?[0-9]!ui';
  7. if(preg_match($regxp, $input)){
  8. echo "Верно\n";
  9. }else{
  10. echo"Ошибка\n";
  11. }
Success #stdin #stdout #stderr 0.02s 24400KB
stdin
Standard input is empty
stdout
Ошибка
stderr
PHP Notice:  Undefined variable: regxp in /home/PG9xVs/prog.php on line 8
PHP Warning:  preg_match(): Empty regular expression in /home/PG9xVs/prog.php on line 8