My Array: http://pastebin.com/P6p10nFR (too long)
How can I get only the hostname?
foreach($gmod_results as $value)
{
echo $value['server']['hostname'];
}
doesn't work!
My Array: http://pastebin.com/P6p10nFR (too long)
How can I get only the hostname?
foreach($gmod_results as $value)
{
echo $value['server']['hostname'];
}
doesn't work!
You can directly call it
$gmod_results['server']['hostname'];