imbz
V2EX  ›  PHP

php 获取 RSS 源的问题

  •  
  •   imbz · May 9, 2015 · 2066 views
    This topic created in 4042 days ago, the information mentioned may be changed or developed.

    <?php $rss=simplexml_load_file("http://rss.sina.com.cn/news/allnews/sports.xml");?>

    通过以上代码可以获取

    如果引号内为用变量表示则无法显示 有何办法?

    如:

    <?php $this->fields->a(); ?> //可输出一个具体地址如

    <?php $rss=simplexml_load_file(" ");?>

    问题 如何将<?php $this->fields->a(); ?> 嵌入引号内?


    各位 问题我已自己解决 谢谢大家

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   989 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 29ms · UTC 22:15 · PVG 06:15 · LAX 15:15 · JFK 18:15
    ♥ Do have faith in what you're doing.