when i try:
echo $response;
the output is LIKE (similiar):
{
"identity": {
"result": [
{
"name" = "Dilan",
"place_id" = 1
},
{
"name" = "Milea",
"place_id" = 1
}
]
}
},
{
"identity": {
"result": [
{
"name" = "Ariel",
"place_id" = 2
},
{
"name" = "Noah",
"place_id" = 2
}
]
}
}
nah when i try to echo $response['identity'], the output is shows the first array only, all my operation to $response is only applied for first array only, i can't do any operation to the second array.
what i want is merged all array output into 1 array, LIKE this below:
{
{
"identity": {
"result": [
{
"name" = "Dilan",
"place_id" = 1
},
{
"name" = "Milea",
"place_id" = 1
}
]
}
},
{
"identity": {
"result": [
{
"name" = "Ariel",
"place_id" = 2
},
{
"name" = "Noah",
"place_id" = 2
}
]
}
}
}
here my controller
thank you! your help is very needed^^

$responseand perform task because if merge then it will be same as before(as you mention above merge code)echo $response;will output an array. How do you build the "array" ?