Explode a variable in Smarty


/ Published in: Smarty
Save to your folder(s)

Looks like syntax changed since forum discussion.


Copy this code and paste it in your HTML
  1. {assign var="myArray" value=$myVar|explode:"."}
  2. {myArray[0]}

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.