mardi 21 février 2017

Laravel - How to remove only element from array (Only Left/ Single)

I am working on Laravel. I am getting such type of response.

{
"id": "125",
"name": "xyz",
"balanced": "2334",
"mutual-friend": [
  "Carl"
]
},

I had used foreach loop for adding mutual-friend object which is present in another table and in response it give above output. I want to remove that single element from array. What should I use? Help me



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2lhZ1gw
via IFTTT

Aucun commentaire:

Enregistrer un commentaire