Solar_Inflect::camelToDashes()

public string Solar_Inflect::camelToDashes ( string $str )

Returns "camelCapsWord" and "CamelCapsWord" as "camel-caps-word".

Parameters

  • (string) $str: The camel-caps word.

Returns

  • (string) The word with dashes in place of camel caps.

Description

Returns "camelCapsWord" and "CamelCapsWord" as "camel-caps-word".



Local