<?php
$number = '8-(911 ) 506 56 56';
$regexp = '/^8[-|\s]?[-|(|\s]?([0-9]{3})[-|)|\s]?[-|\s]?([0-9]{3})[-|\s]?([0-9]{2})[-|\s]?([0-9]{2})$/u';
echo "Номер введен верно.";
}
else{
echo"Неверно набранный номер";
}
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7Cm1iX2ludGVybmFsX2VuY29kaW5nKCd1dGYtOCcpOwoKJG51bWJlciA9ICc4LSg5MTEgKSA1MDYgNTYgNTYnOwokcmVnZXhwID0gJy9eOFstfFxzXT9bLXwofFxzXT8oWzAtOV17M30pWy18KXxcc10/Wy18XHNdPyhbMC05XXszfSlbLXxcc10/KFswLTldezJ9KVstfFxzXT8oWzAtOV17Mn0pJC91JzsKCmlmKHByZWdfbWF0Y2goJHJlZ2V4cCwgJG51bWJlcikpewogICAgZWNobyAi0J3QvtC80LXRgCDQstCy0LXQtNC10L0g0LLQtdGA0L3Qvi4iOwp9CmVsc2V7CgllY2hvItCd0LXQstC10YDQvdC+INC90LDQsdGA0LDQvdC90YvQuSDQvdC+0LzQtdGAIjsKfQ==