I need to be able to grab some data from a string using PHP. I got an API from the games website and need to break it down. The string I need to break down is this: http://services.runescape.com/m=itemdb_rs/api/catalogue/detail.json?item=1513
I need to get the small icon image from that string which is the first url in the string, and the current price, which in the string is 887. So, where it states this:
"current":{"trend":"neutral","price":887}
I need to grab the 887 and put it into a variable.
I'm using PHP, thanks in advance if anyone can help :)