Ben bir dizi var:
print_r($resultArray);
Array
(
[AB34] => Array
(
[a] => 13
[b] => 10
[c] => 3
[d] => 88
[e] => 73
)
...
)
Ve ben başka birine bu diziyi kopyalamak istediğiniz:
$resArray[] = $resultArray;
print_r($resArray);
->
Array
(
[0] => 1
)
So the new array $resArray does not have the content of $resultArray. What needed to be done to solve this?
Saygılarımızla.
UPDATE: I have to copy the $resultArray into $resArray (that's an easy example), because $resultArray will change and I need the data in a $resArray with index, so $resArray[0] the first $resultArray, $resArray[1] the second full value of the $resultArray, ... Some code (only a simple example!):
$resArray[0] = $resultArray;
... calculations on $resultArray ...
$resArray[1] = $resultArray;
... calculations on $resultArray ...
$resArray[2] = $resultArray;
... calculations on $resultArray ...