Words in the ID may be concatenated using the specified character (defaults to '-').
For example, 'PostTag' will be converted to 'post-tag'.
public static camel2id ( string $name, string $separator = '-', boolean | string $strict = false ) : string | ||
$name | string | the string to be converted |
$separator | string | the character used to concatenate the words in the ID |
$strict | boolean | string | whether to insert a separator between two consecutive uppercase chars, defaults to false |
return | string | the resulting ID |