<?php
$text = 'номер';
$regexp = '/^(\+7|8)([-]?[(]?[ ]?[\d][)]?[ ]?[-]?){10}$/i';
echo "Все верно.\n";
} else {
echo "Укажите правильный номер!\n";
}
PD9waHAKCiR0ZXh0ID0gJ9C90L7QvNC10YAnOwoKJHJlZ2V4cCA9ICcvXihcKzd8OCkoWy1dP1soXT9bIF0/W1xkXVspXT9bIF0/Wy1dPyl7MTB9JC9pJzsKCmlmIChwcmVnX21hdGNoKCRyZWdleHAsICR0ZXh0KSkgewogICAgZWNobyAi0JLRgdC1INCy0LXRgNC90L4uXG4iOwp9IGVsc2UgewogICAgZWNobyAi0KPQutCw0LbQuNGC0LUg0L/RgNCw0LLQuNC70YzQvdGL0Lkg0L3QvtC80LXRgCFcbiI7Cn0=