I’m reading the json output from this file and have the decoded json stored in a var called $json.
http://gdata.youtube.com/feeds/api/users/GoogleDevelopers/uploads?v=2&alt=json
What I then want to do is read the value of openSearch$totalResults": but it has a strange $ character. How should I read this value which is 999 in this case.
You need to tell PHP to use the string as the attribute.