Posted By

mbria on 06/09/11


Tagged

Smarty


Versions (?)

Explode a variable in Smarty


 / Published in: Smarty
 

URL: http://www.smarty.net/forums/viewtopic.php?p=6581&sid=3bd173c1f1d1b9a277545f29d73e846e

Looks like syntax changed since forum discussion.

  1. {assign var="myArray" value=$myVar|explode:"."}
  2. {myArray[0]}

Report this snippet  

You need to login to post a comment.