helpers\BaseInflector id2camel()

id2camel() public static method

Converts an ID into a CamelCase name.

Words in the ID separated by $separator (defaults to '-') will be concatenated into a CamelCase name. For example, 'post-tag' is converted to 'PostTag'.

public static string id2camel ( $id, $separator = '-' )
$id string

The ID to be converted

$separator string

The character used to separate the words in the ID

return string

The resulting CamelCase name

doc_Yii
2016-10-30 17:05:23
Comments
Leave a Comment

Please login to continue.