hyphenize()
Description
Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable.
Function Syntax
hyphenize(string)
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
string |
string |
Yes | |
The string to hyphenize. |
Examples
<!--- Outputs "my-blog-post" --->
<cfoutput>
#hyphenize("myBlogPost")#
</cfoutput>
