Hi,
If I have an array that I want to push into an array, how do i do? I do not want to merge the arrays to one, i want to put the pointer to the array into an array.
This will not produce a multidimensional array... How can produce so it looks like this..
Please help..
Masali
If I have an array that I want to push into an array, how do i do? I do not want to merge the arrays to one, i want to put the pointer to the array into an array.
Code:
for ($x=0;$x<10;$x++)
{
$array1=array("this1" => "one","this2" => "two","this3" => "three");
$array2=array();
array_push($array2[$x],$array1);
}
Code:
$array2[0]["this1"]="one";
$array2[3]["this2"]="two";
Masali