skip to Main Content

Get values form dynamic nested arrays in Laravel

I want to get all the values from this array: <root> <Element1> <items> <Element0> <sku>AAAA</sku> </Element0> <Element1> <sku>BBBB</sku> </Element1> </items> </Element1> <items> <Element0> <sku>ABAB</sku> </Element0> </items> <Element2> </Element2> ... ... </root> The array is from Magento2 orders API so its…

VIEW QUESTION

Filter a value from json array of arrays

This is my payload, here I need to validate the status field as active or inactive in details.addressDesc array { "id": "123", "address": [ { "type": "ABC", "name": "name" } ], "details": [ { "Firstname": "firstname1", "lastname": "lastname1", "addressDesc": […

VIEW QUESTION
Back To Top
Search