how to initialize bidimensional array

dmelgcjzfw

New Member
Let's say I would like to manage a multidimensional array like (pseudo-code):\[code\]Array $colors* wine,red* cheese,yellow* apple, green* pear,brown\[/code\]What code could be used to avoid the following notation, to initialize the array (assuming there will be a hard-coded list of elements=?:\[code\]$colors[x][y] = 'something';\[/code\]
 
Back
Top