Re: Sv: Re: New looping method proposal

From: Date: Wed, 21 Nov 2001 23:06:29 +0000
Subject: Re: Sv: Re: New looping method proposal
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2025@lists.php.net to get a copy of this message
>> On the other hand, last, first, index_prev and index_next ARE >> usefull... you sometimes need to know what comes next or what was the >> previous element value in your loop, and you can't manage that kinda >> features without adding elements to your array => more memory used. >> show, max, start, etc are manageable in the php script itself. AZ> What would be the meaning of index_prev/index_next? The previous and AZ> next keys? index_prev, index_next, etc already exist, don't they ? :) (http://www.phpinsider.com/php/code/Smarty/docs/x706.htm#BUILTIN.FUNCTIONS.SECTION) They mean next index, previous index, yes. By instance, i've been using index_next when i wanted to make something special on the current value if the next value had a particular value.

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