Forums / General / Exploding on a Newline
Deane Barker
Tuesday 30 November 2004 11:58:52 am
How would I explode on a newline?
I've tried...
{let pieces=$node.object.data_map.my_string.content|explode("\n")}
...but it didn't work.
Christoph von Siebenthal
Saturday 15 November 2008 1:13:06 pm
In php chr(10) instead of "\n" works.
I think array( 10)|chr() instead of "\n" should work for this purpose.