Posted by Brian on 03/27/07 16:21
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!
Navigation:
[Reply to this message]
|