V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
imbz
V2EX  ›  PHP

php 获取 RSS 源的问题

  •  
  •   imbz · May 9, 2015 · 2011 views
    This topic created in 4015 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   ·   5712 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 08:50 · PVG 16:50 · LAX 01:50 · JFK 04:50
    ♥ Do have faith in what you're doing.