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

PHP解析内容

I have this content in a variable in PHP. How do I make a foreach where I have the field name in one variable and the value in another?

<Transaction id="1">
<Table name="if_802_11_stats">
<Body status="0" statusdescription="" startrecord="1" endrecord="242"     totalrecords="242">
<Entry status="0">
<Field name="IfIndex">1</Field>
<Field name="NodeType">ap</Field>
</Entry>
<Entry status="0">
<Field name="IfIndex">2</Field>
<Field name="NodeType">ap</Field>
</Entry>
</Body>
</Table>
</Transaction>

近期文章

  • 批量PHP isset生成器
  • Yii Datatprovider删除行
  • 在magento中使用户友好
  • Twitter Cron Job,将推文保存到DB
  • RedirectMatch 301将查询字符串更改为文件夹
  • 使用php将事件插入Google日历
  • 如何在PHP中管理任务执行时间
  • Amazon EC2中的$ .post到php文件似乎不起作用
  • HTTP状态500 - PHP FastCGI实例失败
  • mysql单个查询来计算多个值
  • 将Biometric FingerPrint与PHP代码集成
  • 使用Simplepie获取Facebook最新帖子
  • 无法以动态cakephp形式添加数组编号
  • 使用表单设置的ajax表单返回页面
  • 如果一个Foreach失败你可以做一个别的声明吗?
  • 一个非格式良好的数值遇到了解决方案
  • 使用dompdf库在PHPExcel中生成pdf文件
  • 使用数组与数组比较时如何选择数据库MySQL?
  • Wordpress:ACF表单不更新用户个人资料中的自定义字段?
  • 如何计算MySQL中的记录并在PHP中合并结果

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华