Jump to content

[SOLVED] Multi Dimensional Array Append


Robbrad

Recommended Posts

Hi Guys

 

I have a function that returns a multidimentional array eg

 

$result = function(param)

 

echo $result[0][1]." ".$result[1][1]

 

but I want to call the function 4 diffrent times and append to the array prevuiously returned is this possable? and if so how do i do it (dont really want 4 arrays and to recurse through each.)

Link to comment
https://forums.phpfreaks.com/topic/178220-solved-multi-dimensional-array-append/
Share on other sites

Iv tried that but all it seams to do is display the first array iv done an print r of the merge array and the first array is displayed

 

then i did a print of the two arrays to be merge and they show all the results - its really odd the function returns the same type of array - why should they not merge

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.