$telnum = "+7(999)0123456"; $telnum_num = (int)$telnum; // удалены др символы. кром цифр echo $telnum_num;