CJustify()
Returns the given string justified to the center, padding out the words with spaces accordingly
CJustify( string=string, length=number );
Returns: String
Examples
string = "A light-weight dynamic scripting language for the JVM.";
dump(cJustify(string, 5));
// member function
dump(string.cJustify(5));
See also
- Strings
- Formatting
- string.cJustify()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)