Thread: array pointer?
View Single Post
Old 12-07-2003, 05:39 PM   #3 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
here is what i did..

first find the position you want, then advance to that position.

PHP Code:
  $position=array_search($pic,$imageArray);
  for (
$i=0$i $position$i++)
  {
    
next($imageArray);
  } 
i am using for an image gallery on a new site i am working on

the array pointer is the value that the array is currently sitting at (that is my understanding of it).

please excuse the UGLY urls, i am still in early development: http://sevensixtyone.com/photos.php?...7_dragonlounge
__________________


Urban Clothing
Admin is offline   Reply With Quote