Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77351 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40898 invoked from network); 19 Sep 2014 22:14:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2014 22:14:05 -0000 Authentication-Results: pb1.pair.com smtp.mail=leight@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=leight@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.50 as permitted sender) X-PHP-List-Original-Sender: leight@gmail.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:50672] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/44-13213-CAAAC145 for ; Fri, 19 Sep 2014 18:14:04 -0400 Received: by mail-wg0-f50.google.com with SMTP id n12so330778wgh.9 for ; Fri, 19 Sep 2014 15:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ghFZBtAT5popSmg4mfZN5Y2wOFBCXDqMK3bEv0NnkaU=; b=mKvlNTINFZrj2tZPBVVkmBSAK5hr/IIQ55g29OVXFg+Uxyz5ytYeN4JtwLvezF0sRw bs6ei+KtTDHciMEozLGGzpG3GmtzzX3Z4YqKAuie+YcNtBs+2NnoGuoKvy0ILf3wZU/X EdKQTsMgFYgLaqQ6jjSoZFfkEtU8pytTAb1DE5woRBZjVB14tHCMVbqsI+nJ4K838diu ATJATlmynzo9GPvYNCw4tZVcgVRfm6RSDjo0vJYZPQA+MbfyeUtb4HMl1417P3cU/lag WkUdxDE5/JlfbxHw71UbL1HEj1AM+PnrLPgysmEaDB15VcROivAYwYr+5mFB4RhSKT5m qdWw== MIME-Version: 1.0 X-Received: by 10.180.86.73 with SMTP id n9mr798500wiz.30.1411164841796; Fri, 19 Sep 2014 15:14:01 -0700 (PDT) Received: by 10.217.55.195 with HTTP; Fri, 19 Sep 2014 15:14:01 -0700 (PDT) In-Reply-To: <541CA970.4090803@gmail.com> References: <541CA970.4090803@gmail.com> Date: Fri, 19 Sep 2014 23:14:01 +0100 Message-ID: To: Rowan Collins Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Loop... or... From: leight@gmail.com (Leigh) On 19 September 2014 23:08, Rowan Collins 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.