explode() function in template?

Author Message

Roberto Sacchi

Wednesday 18 February 2009 8:22:26 am

how to explode a string using template language?

Example in php:

$pizza  = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);
echo $pieces[0]; // piece1
echo $pieces[1]; // piece2

Roberto Sacchi

Wednesday 18 February 2009 8:28:29 am

ok, found it at manual at page 1190.

It's exactly the same:

input|explode(separator)

:P

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