convertAlphaCharactersInNumber() 공개 정적인 메소드

Converts all alpha characters in a number to their respective digits on a keypad, but retains existing formatting.
public static convertAlphaCharactersInNumber ( string $number ) : string
$number string
리턴 string
 public function testConvertAlphaCharactersInNumber()
 {
     $input = "1800-ABC-DEF";
     // Alpha chars are converted to digits; everything else is left untouched.
     $expectedOutput = "1800-222-333";
     $this->assertEquals($expectedOutput, $this->phoneUtil->convertAlphaCharactersInNumber($input));
 }