Posted by Janwillem Borleffs on 06/16/05 12:35
Captain Dondo wrote:
> What I came up with is this:
>
> foreach ($images as $image) {
> $prev[]=$image[0];
> $next[]=$image[0];
> $loc[]=$image[1]-6;
> }
>
> //Now rotate the prev and next arrays
>
> array_unshift($prev,array_pop($prev));
> $next[]=array_shift($next);
>
> I end up with 3 arrays... I was hoping to have some php-unique neat way
> to do that....
>
So, why don't you use my suggestion? You don't have to call unnessecary
functions and you only need one array.
JW
Navigation:
[Reply to this message]
|