Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

libxml_get_external_entity_loader

Description

The libxml_get_external_entity_loader of libxml for PHP gets the current external entity loader.

Syntax

libxml_get_external_entity_loader(): ?callable

Return

Returns the external entity loader previously installed by libxml_set_external_entity_loader(). If that function was never called, or if it was called with null, null will be returned.

Examples

1 · void

<?

$return = libxml_get_external_entity_loader();

var_export($return);

?>
NULL

2 · libxml_set_external_entity_loader

<?

function resolver($public_id, $system_id, $context)
{
    return "mystring";
}

$resolver_function = "resolver";

libxml_set_external_entity_loader($resolver_function);

$return = libxml_get_external_entity_loader();

echo $return;

?>
resolver
HomeMenu