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

使用SimpleXML阅读YouTube XML [关闭]

I want to read/retrieve some details from a single YouTube video using:

$sxml= simplexml_load_file("http://gdata.youtube.com/feeds/api/videos/gzDS-Kfd5XQ");

How can i read the tags from the XML file like title, description? I search and found a couple of tutorials, but I can't find one that shows how to read specific XML data. Any good tutorial links or examples will be appreciated.

Please see this tutorial: http://www.w3schools.com/php/php_xml_simplexml.asp
Basic use would be

print $xml->something;

近期文章

  • 来自爆炸的Codeigniter和insert_batch
  • PHP读取一个dat文件并输出最低差异
  • 使用jQuery AJAX验证用户无法正常工作
  • 我应该用什么来制作以API为中心的Web应用程序。 CMS还是任何MVC框架? [关闭]
  • 基于key =>值以降序排列关联数组
  • 如何使用xdebug调试脚本[关闭]
  • 如何将此多维数组放入SQL-DB单元格?
  • 将图像链接保存到我服务器上的文件时遇到困难? [关闭]
  • PHP多维数组搜索键和显示值
  • 阅读我的博客中的更多按钮[关闭]
  • 为什么这个AJAX代码在IE8中不起作用?
  • 提供给函数的无效参数[关闭]
  • too long
  • PHP数组。 将表中的每一行数据更改为字符串,然后传递给数组
  • 如何比较两个数组,然后为'matches'添加一个类到从新数组生成的输出选择选项?
  • PHP_SELF和XSS [重复]
  • 流视频php
  • 如何验证窗口注册表脚本[关闭]
  • too long
  • 如何仅查询第二级别类别?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华