- file_get_contents: documentation ( source)
- json_decode: documentation ( source)
- print_r: documentation ( source)
<?php
$a = json_decode(file_get_contents('https://api.mojang.com/user/profiles/a446cfcf74b34c7fa8741b5f84d30da6/names'),true);
print_r($a[count($a)-1]['name']);