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

将PHPQuery结果作为DOMDocument对象获取?

Right now, I'm getting results from PHPQuery as strings and then using DOMDocument to parse the string. Since PHPQuery uses DOMDocument, can I get results from PHPQuery as DOMDocument objects? How do I do this?

Once you get a phpQueryObject, you can access the DomDocument with the public function getDOMDocument()

pq('whatever')->getDocument()->getDOMDocument();

近期文章

  • 致命错误:在非对象上调用成员函数bind_param()进行查询[复制]
  • 插入时没有值[关闭]
  • Youtube Analytics PHP cron
  • php警告:缺少参数1
  • 将字符串数组设为布尔值
  • PHP隐式调用构造函数
  • 如何在数组PHP中将数字格式化为货币?
  • 使用函数的结果填充下拉列表
  • 在实时Windows服务器上安装Wordpress?
  • 如何检查是否设置了所有声明的变量?
  • 使用SESSION数组而不是$ _FILES上传文件?
  • 如何为PHPUnit流测试创建一个模拟服务器?
  • PHP fopen()函数无法打开并且权限被拒绝
  • 我想使用HpCloud的Face Detect API for iphone sdk
  • 防止php注入[重复]
  • 如何获取BuddyPress成员目录中的总页数?
  • Mysql sum函数结果显示在每一行
  • 如何使用PHP / MySQL管理SVG的填充颜色?
  • 使用相同文件的Html / JS / PHP两个页面看起来不同(仅限于chrome)
  • 使用ElasticSearch匹配多个文档

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华