Re: [PHP] Dynamically Populating Multi-Dimensional Arrays

2012-05-31 Thread shiplu
On Thursday, May 31, 2012, Mackintosh, Mike wrote: > Hi All, > > > > I was working on a project and needed to dynamically populate a > multi-dimensional array based on the size of an array. The script does > exactly what I want it to do, but I can't imagine that it's done in the > best way. I used

[PHP] Dynamically Populating Multi-Dimensional Arrays

2012-05-31 Thread Mackintosh, Mike
Hi All, I was working on a project and needed to dynamically populate a multi-dimensional array based on the size of an array. The script does exactly what I want it to do, but I can't imagine that it's done in the best way. I used an eval to construct the array based on the number of values pa