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