Exploding on a Newline

Author Message

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.