Description
int
xml_parse_into_struct
( resource parser, string data, array values, array index)
When we run that code, the output will be:
דוגמה
1
.
moldb.xml
-
small
database
of
molecular
information
|
And some code to parse the document and generate the appropriate
objects:
דוגמה
2
.
parsemoldb.php
-
parses
moldb.xml
into
and
array
of
molecular
objects
|
After executing
parsemoldb.php
, the variable
$db
contains an array of
AminoAcid
objects, and the output of the script confirms that: