【发布时间】:2011-10-21 14:28:22
【问题描述】:
require('mq_class.php');
print_r(Minequery::query("64.31.24.137"));
返回:
Array ( [serverPort] => 25565 [playerCount] => 6 [maxPlayers] => 40 [playerList] => Array ( [0] => Uthly [1] => epson8 [2] => CheeseBricks [3] => Truth92 [4] => zerokhaos [5] => plainlazy95 ) [latency] => 25.8100032806 )
现在,我将如何读取,比如serverPort(变量)或playerList(数组)?
我做PHP有一段时间了,我想我知道的只是一点点。
【问题讨论】:
-
顺便说一句:欢迎来到 Stack Overflow!
标签: php arrays class function loops