WordPress at a glance
function is not described

getid3_lib::XML2array() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

Array|false.

Usage

$result = getid3_lib::XML2array( $XMLstring );
$XMLstring(string) (required)
-

Code of getid3_lib::XML2array() WP 5.7.2

<?php
public static function XML2array($XMLstring) {
	if (function_exists('simplexml_load_string') && function_exists('libxml_disable_entity_loader')) {
		// http://websec.io/2012/08/27/Preventing-XEE-in-PHP.html
		// https://core.trac.wordpress.org/changeset/29378
		// This function has been deprecated in PHP 8.0 because in libxml 2.9.0, external entity loading is
		// disabled by default, but is still needed when LIBXML_NOENT is used.
		$loader = @libxml_disable_entity_loader(true);
		$XMLobject = simplexml_load_string($XMLstring, 'SimpleXMLElement', LIBXML_NOENT);
		$return = self::SimpleXMLelement2array($XMLobject);
		@libxml_disable_entity_loader($loader);
		return $return;
	}
	return false;
}