Skip to content

andygithubchen/xml-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

php xml class

将php数组转换为XML文件的方法

require_once './xmlClass.php';
$obj = new xmlClass;

$name    = 'myxml';  //要生成的XML文件名
$array   = $arr;     //要转换的数组
$return  = true;     //函数是否要返回生成后的文件路径
$path = $obj->ArrToXml($name, $array, $return);

将XML文件转换为php数组的方法

require_once './xmlClass.php';
$obj = new xmlClass;

$name   = 'myarr';      //要生成的php数组文件名
$path   = './data.xml'; //要转换的Xml文件路径
$return = true;         //函数是否要返回生成后的文件路径
$path = $obj->XmlToArr($name, $path, $return);

About

my xml class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages