Hi all,
I am working with the following 2 page script: https://github.com/kevinohashi/php-riot-api. All works well and the data is pulled via the API as intended. However, depending on the data I'm trying to display on screen, the object contains multiple values.
For example:
$r = $test->getSummoner($summoner_id,'name');
print_r($r);
outputs their ID and name: {"585897":"TheirName"}
Just as the following:
$r = $test->getSummonerByName($summoner_name);
print_r($r);
outputs username, ID, Name, profile icon ID, level, and timestamp:
{"theirname":{"id":585897,"name":"TheirName","profileIconId":642,"summonerLevel":30,"revisionDate":1405652924000}}
Depending on which function I am calling (on example.php), I would like to be able to split the values so I can echo them throughout a page:
Name: <value>
ID: <value>
Level: <value>
etc...
Any guidance would be appreciated.