How to extract Twitter username from Search API via PHP

shindu

New Member
The Twitter Search api returns results in ATOM/XML format which look like this:\[code\]<author> <name>username (Friendly Name)</name> <uri>http://twitter.com/username</uri></author>\[/code\]In my PHP I can get the name field as a variable, so it would look like this:\[code\]$names = "username (Friendly Name)"\[/code\]But I want to use PHP to extract them as seperate variables, like this:\[code\]$username = "username"$friendlyName = "Friendly Name" (without parantheses)\[/code\]TIA!
 
Back
Top