I am getting this response from an API:
{"players":224
Is there something simple I can do to condense it into 224, the number only? Thanks, any help would be much appreciated!
Code:
<?php
$data = file_get_contents('http://api.iamphoenix.me/players/?server_ip=play.meloncraft.com&clean=true');
$array = explode(',', $data);
echo $array[0];
?>