Miscellaneous
hyphenize()
Signature
Section titled “Signature”hyphenize() — returns any
Description
Section titled “Description”Converts camelCase strings to lowercase strings with hyphens as word delimiters instead. Example: myVariable becomes my-variable.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
string | string | yes | — | The string to hyphenize. |
Examples
Section titled “Examples”hyphenize(string) <!--- Outputs "my-blog-post" --->
<cfoutput>
#hyphenize("myBlogPost")#
</cfoutput>