Skip to content
Advertisement

Merge multiple array in php laravel

Let us say I have a set of data of the first name

JavaScript

I want the result to return as

JavaScript

How to do it in php / laravel

I have achieved the result but the response is too slow

JavaScript

image

The response is coming more than 20000 ms on the server or local enviroment

Advertisement

Answer

I assume the size of all the 3 arrays is same

JavaScript

$finalArray has what you have.

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