Jump to content

How to parse data from an url


Ezhil

Recommended Posts

Hello

      this url https://www.googleapis.com/buzz/v1/people/sportsstatus/@groups/@followers?max-results=0 return an xml . I need to parse  <totalResults>  </totalResults>  out of this feed using php .I need to retrieve data for  the <totalresults> field.  Iam stuck with this could not move further as iam new to php.

Link to comment
https://forums.phpfreaks.com/topic/216336-how-to-parse-data-from-an-url/
Share on other sites

try

<?xml version="1.0" encoding="UTF-8"?><response gd:kind="buzz#peopleFeed" xmlns="http://portablecontacts.net/ns/1.0" xmlns:gd="http://schemas.google.com/g/2005"><startIndex>0</startIndex><itemsPerPage>0</itemsPerPage><totalResults>20</totalResults></response>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.