Adding to a multi-dimensional array
Posted: Tue Apr 14, 2009 4:44 pm
Hi there
I have this multidimensional array thing
But I want to add another array to it later called like this
How do I add this new array to the multidimensional array properly?
Ive tried just adding in
but that doesnt work
I have this multidimensional array thing
Code: Select all
$doc = array (
1 => array ("Oliver", "Peter", "Paul"),
2 => array ("Marlene", "Lucy", "Lina"),
);
Code: Select all
for ($x = 0; $x < 5;$x++)
{
$rowone[$x] = $x;
}
Ive tried just adding in
Code: Select all
3 => ($rowone);