Reply to Re: Array question

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация