Re: [RFC] Loop... or...

From: Date: Fri, 19 Sep 2014 22:14:01 +0000
Subject: Re: [RFC] Loop... or...
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-77351@lists.php.net to get a copy of this message
On 19 September 2014 23:08, Rowan Collins <rowan.collins@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.

« previous php.internals (#77351) next »