Re: loop

From: Date: Thu, 12 Apr 2001 16:17:58 +0000
Subject: Re: loop
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-536@lists.php.net to get a copy of this message
On Tue, 03 Apr 2001, Ivo Jansch wrote: > That's weird, books is on the end of the statement, but it ends up on > the left of the php code. > Shouldn't it be $outer/.books./inner/authors then? No, because . indicates associative key. > And why the two dots? $outer/.books/inner/authors would be enough I > guess. And maybe the slash could be removed as well. > $outer.books/inner/authors? Then it looks like .books belongs to $outer. > {$books[outer].authors[inner]} This looks more intuitive, and it > resembles the php output a bit more. > > Hmm, this looks a lot easier to understand. And parsable. What do you > think? I suppose I could do that - what about backwards compatibility? -Andrei "Claiming Java is easier than C++ is like saying that K2 is shorter than Everest." -- Larry O'Brien (editor, Software Development)

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