Skip to content
Advertisement

How insert Multiple Array item into One Array in PHP

i want to add multiple Array item into One Array Object in PHP

i have array like below :

JavaScript

And i need to Convert like below:

JavaScript

Array Data maybe changed , but , i write this code for explain my problem :

JavaScript

But this code returns the same as the first array! I want to return every item into one array.

Advertisement

Answer

Try this:

JavaScript

Here is what it got: https://3v4l.org/kZJ2T

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement