Lucee Function Reference

stringeach()

Iterates over a string and runs the closure function for each element in the string.

Example

stringeach(string string,function closure):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
string string  Yes Input string.  
closure function  Yes Closure or a function reference that will be called for each of the iteration.