我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

xml属性是什么工作

I have a function that show a result but its not working this the source code

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

The result is <listing_Last_update> in XML

I want the result like this <listing last_update="2014-08-08 14:15:16"> can you help me in this matter.

近期文章

  • Php tmpfile仅适用于命令行
  • 无法使用cURL打开本地文件
  • Magento 1.8.1 - 从购物车中删除“编辑”
  • PHP中的De- /可激活类扩展
  • 从android发送文本和表情符号到PHP?
  • 将数组从js文件获取到php中,然后编码为json
  • 如何解析从curl网站收到的网站内容
  • php csv imap下载
  • Google Apps Email Audit API:POST请求,用于创建用户邮箱的监视器
  • HHVM:获取失败调用MemcachedSessionModule :: gc()的后果是什么
  • ZF2:pthreads - 传递PDO
  • 在php中填充select标签
  • 在Magento中获取外部会话
  • 如何使用定义为服务的表单将数组数据映射到Symfony2实体?
  • 上传文件时的MIME类型
  • jquery很久以前的服务器
  • Android Studio 将数据发送到 MySql 数据库的问题
  • 与php混淆角度
  • 连接三个表的动态数据透视表
  • Laravel 5 Query Builder不返回任何数据

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华