Jump to content

[SOLVED] multidimensional arrays


chiprivers

Recommended Posts

With a noraml array, I understand that you can declare it in either of the following ways:

 

$name = array( list array values seperated by comas... );

 

or

 

$name[] = value;

 

I am trying to use two-dimensional arrays and all the references tell you to do it like this:

 

$name = array ( $name = array( values in here), $name = array( values in here ) );

 

but I was wondering if you should be able to do it like this:

 

$name[$x][$y] = value;

 

I have tried it but can't get it to work??

Link to comment
https://forums.phpfreaks.com/topic/39307-solved-multidimensional-arrays/
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.