Skip to content
Advertisement

Tag: unset

Smarty: unset an array index in template

I would like to do {unset($array[‘index’])} into a Smarty 3 template. Is such a syntax (or similar) supported ? After Googling and doc reading I can’t find something satisfying. Maybe I should ask for a feature request to Smarty dev team ? 🙂 Anyway, how would you do this given the currently available template functions ? Answer I don’t think

Advertisement