以下是Query的結果集。我怎樣才能打印列名稱用戶,用戶名和地點?讀取stdclassObject以獲取密鑰和值
print_r($report_results);
$ report_results低於
Array (
[0] => stdClass Object ([User] => Helton, Joshua [UserID] => 31 [place] => Dallas)
[1] => stdClass Object ([User] => Miller, Jona [UserID] => 95 [place] => Cupertino)
[2] => stdClass Object ([User] => Sarah, Thomson [UserID] => 32 [place] => Las Vegas)
)
請學習如何訪問['array'](http://php.net/manual/en/language.types.array.php)和['object']( http://php.net/manual/en/language.oop5.basic.php)! – Rizier123 2015-04-02 18:44:12