This commit is contained in:
Meghdad committed 2026-11-26 12:29:14 +03:30
commit 647c8a8cab
236 files changed
+24692

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
<?php
namespace App\Support;
use IntlChar;
class PhoneNumber
{
public static function dialString(string $number): string
{
$digits = preg_replace_callback('/\p{Nd}/u', fn (array $match): string => (string) IntlChar::digit($match[0]), $number);
return preg_replace('/[^+0-9]/', '', $digits);
}
}