How to retrieve data from XML?

Hello. How to use php to extract data from a file:
<data>
<domains>
<domain id="2">345455454</domain>
<domain id="4">378543456</domain>
<domain id="86">5667875454</domain>
<domain id="17">568565454656</domain>
<domain id="19">677856545454</domain>
<domain id="22">546778675454</domain>
<domain id="24">5478543465</domain>
<domain id="25">754545466767</domain>
<domain id="26">356784787565</domain>
<domain id="28">5668545445656</domain>
<domain id="33">56668545454</domain>
</domains>
</data>

Need to extract code from a string 356784787565
<domain id="26">.....</domain>
July 8th 19 at 15:33
1 answer
July 8th 19 at 15:35

Find more questions by tags XML