Comma and quote_comma
/ Arrays / Comma and quote_comma
Comma and quote_comma
- Comma will return comma separated string if input is array and array if input is string
- quote comma will return comma separated string with each value in quote.
- Examples:
1234567 [template.set arrrr.new="value1" /][template.set arrrr.new="value2" /][template.set arrrr.new="value3" /][template.arrrr.dump /][template.arrrr.comma.dump /][template.arrrr.quote_comma.dump /]Output
123456 array(3)[0 => string(6) "value1"1 => string(6) "value2"2 => string(6) "value3"]comma:
1 string(20) "value1,value2,value3"Quote comma
1 string(26) "'value1','value2','value3'"