Jump to content

Taking info from one array and using it to create a new multidimensional array


gwolgamott

Recommended Posts

Array ( [0] => Events/New/ [1] =>  Events/Old/[2]=> Events/Current/Info/[3] => Managament Documents/Engineering/ [4] => Managament Documents/Lateral/ [5] => Managament Documents/Pedestal/ [6] => Managament Documents/Random/dd/ [7] => Managament Documents/Random/ff/) 

 

To create an array that would be structured something like this

 

$temp_array[0][Events][New] ="Dummy";
$temp_array[0][Events][Old] = "Dummy";
$temp_array[0][Events][Current][info] ="Dummy";
$temp[1][Managament Documents][Engineering] = "Dummy"
// etc....

 

The first array would be dynamic in size and created from a file directory or a list of items... or what have you.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.