Re: Array Indexing

From: Date: Tue, 22 Oct 2002 17:05:42 +0000
Subject: Re: Array Indexing
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-120950@lists.php.net to get a copy of this message
John, Thanks for your answer but I am holding out hope on a no looping method, as as the array grows it will slow the exicution time considerably. Trevor "John W. Holmes" <holmes072000@charter.net> wrote in message news:000101c279e8$204dac10$7c02a8c0@coconut... > Maybe a combo of next(), prev() and pos() would help? > > Loop MIDDLE_INDEX times of next() to get to that element? > > ---John Holmes... > > > -----Original Message----- > > From: Trevor Dowling [mailto:td01@csr.com] > > Sent: Tuesday, October 22, 2002 12:09 PM > > To: php-general@lists.php.net > > Subject: [PHP] Array Indexing > > > > Is it posiable to set the position marker of an array, appart from > moving > > it > > to the top, bottom or indexing using next and previous? > > > > If..... > > > > define (MIDDLE_INDEX, 20); > > > > Can pos be set to MIDDLE_INDEX? > > > > mixed pos ( array array) returns the current position in the array. > > > > array( > > 1 => X, > > 2 => Y, > > 3 => Z, > > .........., > > 40 => END > > ); > > > > Can we set pos to point to a location so that we can then use the next > / > > current functions? > > > > > > Trevor > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#120950) next »