Method | Description | |
---|---|---|
data2xml ( SimpleXMLElement $xml, mixed $data, string $item = 'item', string $id = 'id' ) : string | 数据XML编码 | |
decode ( string $str, boolean $assoc = true, array $config = [] ) : string | 解码XML数据 | |
encode ( mixed $data, array $config = [] ) : string | 编码XML数据 | |
xml2data ( SimpleXMLElement $xml, array &$data, string $item = 'item', string $id = 'id' ) | 数据XML解码 |