Reply to Re: Arrays on the fly

Your name:

Reply:


Posted by ZeldorBlat on 03/27/07 18:55

On Mar 27, 12:21 pm, "Brian" <brian_no_s...@nrwp.co.uk> wrote:
> Hi
>
> I'm sure there is a really easy way of doing this, but I just can't
> seem to work it out.
> I'm trying to use an array to create some more array which I
> will then populate. It's going to be used to open up directory
> and put of list of files in the array
>
> Here is the top array
>
> $galleries = array("array1" => "Descrption of 1", "array2" => "Descrption of
> 2", "array3" => "Descrption of 3");
>
> foreach($galleries as $k => $v){
> // do some tests of directory if all OK then create an array
>
> $$k = array();
>
> // add to above array here
>
> }
>
> I am am trying to end up with is 3 arrays called 1 to 3.
>
> Thanks
>
> B
>
> --------------------------------------------------------------------------------
> I am using the free version of SPAMfighter for private users.
> It has removed 1444 spam emails to date.
> Paying users do not have this message in their emails.
> Try SPAMfighter for free now!

That code worked fine for me. What exactly is the problem you're
having?

[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

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