- simplexml_load_string: documentation ( source)
- print_r: documentation ( source)
<?php
$xml = <<<xml
<?xml version="1.0" encoding="utf-8"?>
<RESPONSE>
<s> </s>
<z>s</z>
</RESPONSE>
xml;
$response = simplexml_load_string($xml);
print_r($response);