I am having trouble in displaying data through std Class Object and Array in PHP. Basically I have fetched data from .wsdl file through a web service. Below is the screenshot of some data. Kindly go through this screenshot.
I am trying to display items:
- Ldate
- Ltime
- Satza
For this I am using:
foreach($data as $objects){
echo $objects->Itab->item[0]->Ldate;}
Here $data
is an object which contains all values fetched from .wsdl file. I don't understand where I am doing wrong.
Kindly tell me a way by which I can display these three values (Ldate, Ltime, Satza) in a loop.