- xml_parse: documentation ( source)
<?php
$data = <<<XML
<html>
<head><title>500 Internal Server Error</title></head>
<body bgcolor="white">
<center><h1>500 Internal Server Error</h1></center>
<hr><center>nginx/1.2.1</center>
</body>
</html>
XML;
$movies = xml_parse($data);