HttpClient, access json data


#1

How to access data from this results https://randomuser.me/api/?results=5 in custom shell?

$http = new Client();

$http->get ('https://randomuser.me/api/?results=5');

//test output data 

$this-out ($http->body);

Now unable to loop data?