Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
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: