imbz
V2EX  ›  PHP

php 获取 RSS 源的问题

  •  
  •   imbz · May 9, 2015 · 2048 views
    This topic created in 4029 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   ·   1479 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 17:00 · PVG 01:00 · LAX 10:00 · JFK 13:00
    ♥ Do have faith in what you're doing.