Hello everone my name is reidho i have a problem with my code, i want to mirroring a api output from somesite using file_get_contents but the results is not like the original.
Original Result :
My Mirroring Result :
The Code :
$ping = "https://api.hackertarget.com/nping/?q=8.8.8.8";
$pingkeluar = file($ping);
foreach ($pingkeluar as $pingnya) {
echo " $pingnya ";
}