getid3_lib::XML2array

Advertisement

Syntax Syntax

getid3_lib::XML2array( string $XMLstring )

Parameters Parameters

$XMLstring

(string) (Required)

Return Return

(array|false)

Source Source

File: wp-includes/ID3/getid3.lib.php

			// https://core.trac.wordpress.org/changeset/29378
			$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;
	}

	/**
	* @param SimpleXMLElement|array|mixed $XMLobject

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.