lets say that I had this array.
$room = array(
0 => array(1 => 30, 1, 29, 28, 31),
1 => array(1 => 3, 2, 7, 29, 0, 30),
2 => array(1 => 4, 5, 7, 1, 3),
3 => array(1 => 0, 0, 2, 1, 36),
4 => array(1 => 0, 0, 43, 5, 2),
5 => array(1 => 4, 43, 44, 0, 6, 2),
6 => array(1 => 5, 0, 7),
7 => array(1 => 2, 6, 0, 0, 8, 1),
8 => array(1 => 7, 9, 0, 14, 10, 29),
9 => array(1 => 8, 0, 0, 11, 13),
10 => array(1 => 29, 8, 14, 15),
);
How could I get a foreach loop to print out the values of a certain index number?
For example if $currentroom = 6 then the loop would be 5<br>0<br>7<br>.
I'm wanting to use the $_POST method to send my results as the $_GET method would diplay results in the url. Also, how could I store the room numbers in a variable? (ie 1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
I'm sorry this is taking so long!