Centers a string in a given field length by adding spaces to either side.
cJustify(string, length)
returns string
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| string | string | Yes | The string that is to be centered | |
| length | numeric | Yes | The length of the field in which the string should be centered |
<cfset jstring = cJustify("ColdFusion", 35)>
<cfdump var="#jstring#" />