文件名称:libphonenumber-for-php-masterPHP电话号码处理库.zip
文件大小:3.12MB
文件格式:ZIP
更新时间:2022-07-31 05:01:33
类库下载-libphonenumber-for-php-masterPHP电话号码处理库
<?php namespace libphonenumber; /** * Class AsYouTypeFormatter * A formatter which formats phone numbers as they are entered. * * An AsYouTypeFormatter instance can be created by invoking PhoneNumberUtil::getAsYouTypeFormatter(). * After that, digits can be added by invoking inputDigit() on the formatter instance, and the partially * formatted phone number will be returned each time a digit is added. clear() can be invokved before * formatting a new number. */ class AsYouTypeFormatter { /** * @var string */ private $currentOutput; /** * @var string */ private $formattingTemplate; /** * The pattern from numberFormat that is currently used to create formattingTemplate. * @var string */ private $currentFormattingPattern; /** * @var string */ private $accruedInput;本库可以对电话号码的数据库进行处理。