Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Public Attributes | List of all members
xml2Array Class Reference

Public Member Functions

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

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: