splitCamel() public static method

Split camel case string
public static splitCamel ( string $text ) : string
$text string
return string
Example #1
0
 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'));
 }
Example #2
0
 /**
  * Split camel case words to a sentence
  *
  * @param  string $text
  *
  * @return string
  */
 function split_camel($text)
 {
     return Utils::splitCamel($text);
 }