camelize() public static method

Camelize
public static camelize ( type $string, type $pascalCase = false ) : type
$string type
$pascalCase type - if true = CamelCase, else camelCase
return type
Example #1
0
 /**
  * Return a CameLized string
  *
  * @return string
  */
 public static function formatName($name)
 {
     return Helpers::camelize($name, true);
 }
Example #2
0
 /**
  * Set the action name
  *
  * @param string $action
  */
 protected function setActionName($action)
 {
     $this->actionName = Helpers::camelize($action, true);
     return $this;
 }