url http api randomuser me text file_get_contents url array json_decod

1
2
3
4
$url = "http://api.randomuser.me/";
$text = file_get_contents($url);
$array = json_decode($text, true);
print_r($array);