public static format_phone ( mixed $tel ) : string | ||
$tel | mixed | |
return | string |
public static function format_phone($tel)
{
return wc_format_phone_number($tel);
}
/** * Test format_phone(). * * @since 2.4 */ public function test_format_phone() { $this->assertEquals('+00-000-00-00-000', WC_Validation::format_phone('+00.000.00.00.000')); $this->assertEquals('+00 000 00 00 000', WC_Validation::format_phone('+00 000 00 00 000')); }