<?php
$regexp = '/^( ?8|\+ ?7)([ \-()]*[0-9]){10}$/';
$number = "+ 7 ( 812 ) 678 - 67 - 67";
echo $number . "\n";
}
}
echo $number;
PD9waHAKJHJlZ2V4cCA9ICcvXiggPzh8XCsgPzcpKFsgXC0oKV0qWzAtOV0pezEwfSQvJzsKJG51bWJlciA9ICIrIDcgKCA4MTIgKSA2NzggLSA2NyAtIDY3IjsKZWNobyAkbnVtYmVyIC4gIlxuIjsKCmlmIChwcmVnX21hdGNoKCRyZWdleHAsICRudW1iZXIpKSB7CgkkbnVtYmVyID0gcHJlZ19yZXBsYWNlKCIvWyBcLSgpXS8iLCAnJywgJG51bWJlcik7Cn0KaWYgKHByZWdfbWF0Y2goIi9cKzcvIiwgJG51bWJlcikpIHsKCSRudW1iZXIgPSBwcmVnX3JlcGxhY2UoIi9cKzcvIiwgIjgiLCAkbnVtYmVyKTsKfQoKZWNobyAkbnVtYmVyOwo=