Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag for Brazil

asked on

Could you point how to obtain the transaction_uid (2nd element) value at this SimpleXMLElement Object by using PHP?

Hi Experts

Could you point how to obtain  the transaction_uid (2nd element) value at this SimpleXMLElement Object by using PHP?

SimpleXMLElement Object
(
    [@attributes] => Array
        (
            [value] => 9230
        )

    [transaction_uid] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 93311
                )

        )

    [date] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 20210125
                )

        )

    [hour] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 10:28:07
                )

        )

    [number_of_coupons] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 0
                )

        )

    [coupons] => SimpleXMLElement Object
        (
            [0] =>  
    
        )

    [store_number] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 0104
                )

        )

    [ptv_number] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 0038
                )

        )

    [point_balance] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 0
                )

        )

    [point_unusable] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 0
                )

        )

    [city_code] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [value] => 
                )

        )

    [pdf_coupons] => SimpleXMLElement Object
        (
            [pdf_coupon] => SimpleXMLElement Object
                (
                    [@attributes] => Array
                        (
                            [pdf_coupon_title] => Teste
                            [pdf_promotionid] => 14
                            [pdf_barcode] => 29600104210125000546
                            [pdf_ean_type] => EAN128
                            [pdf_amount] => 29.67
                            [pdf_text] => VGVzdGUKCnRlc3RlCnRlc3RlCgpDVVBPTSBWQUxJRE8gREU6IDIwLzAxgICAgICAgICAgICAgICAgIHRlc3RlCiAgICAg ICAgICAgICAgICAgICAgIHRlc3RlCiAgICAgICAgICAgICAgICAgICAgIHRlc3RlCiAgICAgICAg ICAgICAgICAgIC AgIHRlc3RlCiAgICAgICAgICAgICAgICAgICAgIHRlc3RlCiAgICAgICAgICAg ICAgICAgICAgIHRlc3RlCiAgICAgICAgICAgICAgICAgICAgIHRlc3RlCiAgICAgICAgICAgICAg ICAgICAgIHRlc3RlCiAgICAgICAgICAgICAgICAgICAgIHRlc3RlCiAgICAgICAgICAgICAgICAg ICAgIHRlc3RlCiAgICAgICAgICAgICAgICAgIC AgIHRlc3RlCiAgICAgICAgICAgICAgICAgICAg IHRlc3RlCiAgICAgICAgICAgICAgICAgICAgICAgIApUUk06IDAzOCBMT0pBOiAxMDQgSUQxOiAx NAo=
                        )

                )

        )

    [management_coupon] => 
CiAgICAgICAgICAgICAgICAgICAgUFJPTU9DQU8gICAgICAgICAgICAgICAgICAgIAoKUFJPTU9D
QU8gQ09OQ0VEUyBBQkFJWE8gOgoKSVRFTSBDT0RJR08gREVTQ1JJQ0FP
ICAgICAgICAgICAgICAgICAgICBJVEVNIFIkClBST01PQ0FPIG9mZmVyXzFfY2xhc3NpY19sb3Qg
ICAgICAgICAgICAgIC0yOC43
OQogIDAwNCA3NjkzNzQ1ICAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgLTcuMjAKICAwMDUgNzY5Mzc1MyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC03
LjIwCiAgMDA2IDc2OTM3NjEgICAAgICAgICAgICAgICAgICAgIC0xNC4zOQ==

)

Open in new window

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Eduardo Fuerte

ASKER

Hi Chris

Perfect!
Chris

Thank you very much!