WP_CLI
Inflector::camelize
Camelizes a word. This uses the classify() method and turns the first character to lowercase.
Method of the class: Inflector{}
No Hooks.
Returns
String. The camelized word.
Usage
$result = Inflector::camelize( $word );
- $word(string) (required)
- The word to camelize.
Inflector::camelize() Inflector::camelize code WP-CLI 2.13.0-alpha
public static function camelize( $word ) {
return lcfirst( self::classify( $word ) );
}