dpd20130 2014-02-15 15:43
浏览 28
已采纳

PHP读取Array to String

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!

  • 写回答

1条回答 默认 最新

  • duan0513 2014-02-15 15:45
    关注

    You can directly call it

    $gmod_results['server']['hostname'];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?