Re: loop

From: Date: Mon, 02 Apr 2001 21:56:54 +0000
Subject: Re: loop
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-507@lists.php.net to get a copy of this message
On Thu, 29 Mar 2001, Ivo Jansch wrote: > Maybe that should be {$outer.@books/inner.@authors} or something.. Ack, I can't even parse it in my head. :) > at least something that the compiler can convert to: > > > $books[$_sections['outer']['properties']['index']]['authors'][$_sections['inner']['properties']['index']]; I can see two possible syntaxes: 1) $inner/(outer/books.authors) - basically using parentheses to define precedence of looping. 2) $outer/.authors./inner/books - introducing keys into the indexing chain, this would be the same as $books[outer]['authors'][inner]. #1 will be harder to parse even though it might seem easier. I like #2 personally. Thoughts? -Andrei "Everything has its wonders, even darkness and silence, and I learn, whatever state I may be in, therein to be content." - Helen Keller

« previous php.smarty.general (#507) next »