2 Dimensional Array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
taha
Forum Newbie
Posts: 17
Joined: Tue Nov 22, 2005 2:40 pm

2 Dimensional Array

Post by taha »

Could someone tell me how to go about creating a 2 dimensional array ?
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

A couple examples:

Code: Select all

$myArray = array(array(1,2),array(2,2);
$myArray[0][1] = 'test';
Post Reply