How to get the tag “” from Yahoo Weather RSS in PHP?

前端 未结 2 1469
臣服心动
臣服心动 2020-12-06 04:06
load(\'http://weather.yahooapis.com/forecastrss?p=VEXX0024&u=c\');
    $channel = $doc->getElementsByTagNa         


        
2条回答
  •  天命终不由人
    2020-12-06 04:29

    How about:

    • DOMElement::getAttribute — Returns value of attribute

    And if you need to get anything with namespaces, there is corresponding methods ending in NS.

提交回复
热议问题