xml属性是什么工作

时间:2015-07-09 04:32:47

标签: php xml

我有一个显示结果的函数,但它没有使用源代码

function push($element, $addchild, $attributes = array()) {
    $this->_indent();
    $this->xml .= '<'.$element;
    foreach ($attributes as $key => $value) {
        $this->xml .= ' '.$key.'="'.htmlentities($value).'"';
    }
    $this->xml .= ">\n";
    $this->stack[] = $element;
}

结果是XML中的<listing_Last_update>

我希望像<listing last_update="2014-08-08 14:15:16">这样的结果可以帮助我解决这个问题。

0 个答案:

没有答案