RE: [PHP] Array Indexing

From: Date: Tue, 22 Oct 2002 16:28:54 +0000
Subject: RE: [PHP] Array Indexing
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120942@lists.php.net to get a copy of this message
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 (#120942) next »