Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
xml2Array Class Reference

Public Member Functions

 parse ($strinputxml)
 Parse an XML text string and create an array tree that rapresent the XML structure.
 
 tagclosed ($parser, $name)
 
 tagdata ($parser, $tagdata)
 
 tagopen ($parser, $name, $attrs)
 
 utf8_to_entities ($str)
 Convert a utf-8 string to html entities.
 

Public Attributes

 $arroutput = array()
 
 $resparser
 
 $strxmldata
 

Member Function Documentation

◆ parse()

xml2Array::parse ( $strinputxml)

Parse an XML text string and create an array tree that rapresent the XML structure.

Parameters
string$strinputxmlThe XML string
Return values
array

◆ utf8_to_entities()

xml2Array::utf8_to_entities ( $str)

Convert a utf-8 string to html entities.

Parameters
string$strThe UTF-8 string
Return values
string

The documentation for this class was generated from the following file: