User Tools

Site Tools


bigace:smarty_modifier:explode

Table of Contents

{explode}

The {explode} Modifier splits after a defined delimiter. Use this mod with e.g. the {assign}-TAG.

Attributes

  • var - (required,string)
  • value - (required,string)

Syntax

{assign var="DEFINED_VAR" value="DEFINED_VALUE"|VAR_TO_EXPLODE}

Example

{assign var="stuff" value=";"|explode:$MENU->getCatchwords()}
<ul>
<li>Item 1:</span> {$stuff[0]}</li>
<li>Item 2:</span> {$stuff[1]}</li>
<li>Item 3: {$stuff[2]}</li>
</ul>
bigace/smarty_modifier/explode.txt · Last modified: 2011/04/12 21:46 by manuela