format( $lib->parse($phone, $country), $format ); } } if (! function_exists('phone_format')) { /** * Formats a phone number and country for display. * * @param string $phone * @param string $country * @param int|null $format * @return string * * @deprecated 2.8.0 */ function phone_format($phone, $country = null, $format = PhoneNumberFormat::INTERNATIONAL) { return phone($phone, $country, $format); } }