您好,欢迎访问一九零五行业门户网

php使用函数方式输出XML文件的例子

prepare($sql);$pdo->execute();$str='';$str.='';//如果内容中有html代码可以使用while(list($id,$username,$phone,$***)=$pdo->fetch(pdo::fetch_num)){ $str.=''; $str.=''.$username.''; $str.=''.$phone.''; $str.=''.$***.'***>'; $str.='';}$str.='
';file_put_contents(user.xml,$str);header(content-type:text/xml);echo $str;?>
复制代码
其它类似信息

推荐信息