0

Can anyone let me know how to fetch the [response] value from the below response object

SimpleXMLElement Object (

[MaterialInfo] => SimpleXMLElement Object
    (
        
        [QueryList] => Array
            (
                [0] => SimpleXMLElement Object
                    (
                        [@attributes] => Array
                            (
                                [identity] => EUROHS-0508
                            )

                        [Query] => Array
                            (
                                [0] => SimpleXMLElement Object
                                    (
                                        [@attributes] => Array
                                            (
                                                [statement] => Product Meets EU RoHS Requirements Without Any Exemptions
                                                [response] => false
                                            )

                                    )
Rahul S
  • 1
  • 1
  • 1
    What have you tried, show us your best attempt (code). Where are you stuck? Do you get any error(s)? please read [ask]! – jibsteroos Dec 04 '20 at 08:45
  • Have tried below but no luck echo "\n --->". $querylist_stmnt->MaterialInfo->QueryList[0]->Query[0]; echo $querylist_stmnt['MaterialInfo']['QueryList'][0]['Query'][0]['@attributes']['response']; – Rahul S Dec 04 '20 at 10:14
  • Rahul S, just an idea for some of your questions visitors it might be better to edit the code properly into the question. – hakre Dec 04 '20 at 18:47

0 Answers0