splitCamel() 공개 정적인 메소드

Split camel case string
public static splitCamel ( string $text ) : string
$text string
리턴 string
예제 #1
0
파일: UtilsTest.php 프로젝트: lavary/crunz
 public function testSplitCamel()
 {
     $this->assertEquals('thirty seven', Utils::splitCamel('thirtySeven'));
     $this->assertEquals('one thousand and five hundred sixty three', Utils::splitCamel('oneThousandAndFiveHundredSixtyThree'));
     $this->assertEquals('seven hundred eighty five', Utils::splitCamel('sevenHundredEightyFive'));
 }
예제 #2
0
파일: Helpers.php 프로젝트: lavary/crunz
 /**
  * Split camel case words to a sentence
  *
  * @param  string $text
  *
  * @return string
  */
 function split_camel($text)
 {
     return Utils::splitCamel($text);
 }