<?php error_reporting(-1);mb_internal_encoding('utf-8');$number = "+7892()326 ()-()2_032";$clearNum= preg_replace('/\D/',"",$number);if (mb_strlen($clearNum) == 11) { if (mb_substr ($clearNum,0,1)=='/7|8/'){ $clearNum = preg_replace('/^7/',8,$clearNum); echo "clearNum"; exit("stop"); }else{ echo "error э$clearNumэ";}}
Standard input is empty
Standard output is empty
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
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!