DOMパース php

DOMパース php

 
[highlight_php]

$url = 'https://ultimai.org/wp';
$html = file_get_contents($url);

$doc = new DOMDocument();
$doc->loadHTML($html);

$xmlString = $doc->saveXML();
  $xmlObject = simplexml_load_string($xmlString);
	  $html = json_decode(json_encode($xmlObject), true);
	var_dump($html);exit;		

[/highlight_php]


 

太平洋

Website:


Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /var/www/html/wp/wp-includes/functions.php on line 5107

Notice: ob_end_flush(): failed to send buffer of zlib output compression (1) in /var/www/html/wp/wp-includes/functions.php on line 5107