On 19 September 2014 23:08, Rowan Collins <rowan.coll...@gmail.com> wrote: > It's worth noting that both Smarty and Twig implement a similar mechanism in > their respective foreach loop syntax. > > Smarty spells it {foreachelse} > http://www.smarty.net/docs/en/language.function.foreach.tpl > > Twig spells it {% else %} > http://twig.sensiolabs.org/doc/tags/for.html#the-else-clause > > -- > Rowan Collins
Yep, I thought I included a paragraph about templating engines emulating this, but I probably did a copy/edit/paste fail --> on the todo list for next edit. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php