getAlpha() 공개 정적인 메소드

Returns only the alphabetic characters in value.
public static getAlpha ( mixed $value ) : mixed
$value mixed
리턴 mixed
예제 #1
0
 /**
  *
  */
 public function testGetAlpha()
 {
     $input = '0qhf01 *#R& !)*h09hqwe0fH! )efh0hf';
     $output = 'qhfRhhqwefHefhhf';
     $this->assertTrue(Inspekt::getAlpha($input) === $output);
     $input = array('1241DOSLDH', 'efoihr123-', 'eoeijfo1');
     $output = array('DOSLDH', 'efoihr', 'eoeijfo');
     $this->assertEquals(Inspekt::getAlpha($input), $output);
 }