- var_dump: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$xml = simplexml_load_string('<html><meta http-equiv="refresh" content="5;url=http://example.com/" />
</html>');
$result = $xml->xpath("//meta[@http-equiv='refresh']");
var_dump($result);