我需要創建HTML表JSON數據的HTML表格...創建陣列和
有了這個代碼:
$result = curl_exec($ch);
curl_close($ch);
$json = json_decode($result);
foreach ($json->data->reservations as $element) {
print_r($element);
}//
我得到了這樣的數據:
stdClass Object ([id] => 11616946 [property] => NNN [propertyName] => nnn [infourl] => https://domain.com [from] => 2016-07-18 [to] => 2016-07-25) [pricing] => stdClass Object ([price] => 1164.24 [clientInfo] => stdClass Object ([firstName] => PERA [lastName] => PETROVI [email] => [email protected]) [status] => 1 [offline] => 0) stdClass Object ([id] => 11589607 [property] ... ... ... ... etc.
如何創建與該數據的HTML?如何使用foreach和創建表並在該行中爲每個ID?
謝謝,我創建了相同的,但我使用數據表 –