|
|
Ok!
|
|
|
Ok!
|
|---|---|---|---|---|
| 296 | private function processPhone($phone)
{
$hasPlus = $phone[0] == '+';
$phone = preg_replace('/D+/', '', $phone);
if($phone[0] == '8')
{
$phone = '7' . substr($phone, 1);
}
return trim($phone);
} | php, phone, телефон проверка | 4000 | Проверка телефона php |