fork download
  1. <?php
  2.  
  3. $number = "+7892()326 ()-()2_032";
  4. $clearNum= preg_replace('/\D/',"",$number);
  5. if (mb_strlen($clearNum) == 11) {
  6. if (mb_substr ($clearNum,0,1)=='/7|8/'){
  7. $clearNum = preg_replace('/^7/',8,$clearNum);
  8. echo "clearNum";
  9. exit("stop");
  10. }else{
  11. echo "error э$clearNumэ";
  12. }
  13. }
Runtime error #stdin #stdout #stderr 0.01s 82560KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Fatal error:  Uncaught Error: Call to undefined function mb_internal_encoding() in /home/jdFU7T/prog.php:4
Stack trace:
#0 {main}
  thrown in /home/jdFU7T/prog.php on line 4