$mode $mode READMODE 0:读模式,encoding参数不生效,通过输入的string获取version和encoding(getString方法不可用) WRITEMODE 1:写模式,按照制定的encoding和array生成string(getArray方法不可用)
init() init(mixed $mode, mixed $encoding = "UTF-8", mixed $version = "1.0") : mixed Parameters mixed $mode mixed $encoding mixed $version Returns mixed —
createTag() createTag(mixed $tag, mixed $cdata = "", mixed $attr = array(), mixed $sub = array()) : mixed 生成一个xml节点 Parameters mixed $tag mixed $cdata mixed $attr mixed $sub Returns mixed —
_stringToArray() _stringToArray(mixed $xmlString) : mixed Parameters mixed $xmlString Returns mixed —