Jump to content

Multidimensional Array


ylkien

Recommended Posts

hi guys,

I am trying to create a double array. While inserting the values into the array, it doesn't increment properly.

For example :

$Array1[][] = 1;
$Array1[][] = 2;

//Output will be $Array1[0][0] = 1, [b]$Array1[1][0] = 2[/b]

How do i configure it, so that it will increment the second array, so the output will be "[b]$Array1[0][1] = 2[/b]" ?

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/29779-multidimensional-array/
Share on other sites

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.