Forums / General / Exploding on a Newline

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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.