|
xml_set_objectUse XML Parser within an object Beschreibung
bool xml_set_object
( resource
$parser
, object &$object
)
This function allows to use Achtung
In addition to calling xml_parser_free when the parsing
is finished, as of PHP 7.0.0 it is necessary to also explicitly unset the
reference to Parameter-Liste
Rückgabewerte
Gibt bei Erfolg Beispiele
Beispiel #1 xml_set_object example
<?phpDas oben gezeigte Beispiel erzeugt folgende Ausgabe:
string(1) "A"
array(1) {
["ID"]=>
string(5) "hallo"
}
string(3) "PHP"
string(1) "A"
|