I have mongo database which has a very long nested Elements, actually, I am saving modems router in the mongo db and trying to display this data in GUI, I am using data_get function to access these data .like this
$ssid=data_get($device->InternetGatewayDevice['LANDevice']??[],'1.WLANConfiguration.*.SSID');
here I am trying to get all ssid that exists in the router using a wildcard (*), because maybe the modem will has multi ssid and the attributes like this
InternetGatewayDevice.LANDevice.1.WLANConfiguration.1.SSID
InternetGatewayDevice.LANDevice.1.WLANConfiguration.5.SSID
as you see in the above example the 5th element is changing depending on the profile number, I need to get the path also beside the value,but I don't know how to find the exact path that the value has been returned from, I can access the value eith out any problem but I am not able to get the path of this value when using wildcard , and I have to use wildcard because these numbers are not static so maybe the attribute will be like this also
InternetGatewayDevice.LANDevice.1.WLANConfiguration.8.SSID InternetGatewayDevice.LANDevice.2.WLANConfiguration.3.SSID