- var_dump: documentation ( source)
- libxml_set_external_entity_loader: documentation ( source)
<?php
libxml_set_external_entity_loader(function ($public_id, $system_id, $context) {
var_dump($public_id, $system_id, $context);
return "other";
});
$doc = new DOMDocument;
$doc->loadHTMLFile("foobar");