0
這是我的查詢:如何在CakePHP中調試數組數據?
$this->loadModel("Recipe");
$responses = $this->Response->find("all");
我怎麼會顯示的反應結果,這樣我就可以再檢查一下它的內容?
這是我的查詢:如何在CakePHP中調試數組數據?
$this->loadModel("Recipe");
$responses = $this->Response->find("all");
我怎麼會顯示的反應結果,這樣我就可以再檢查一下它的內容?
嘗試進行調試:
debug($responses);
或:
print_r($responses);
它會打印出它的價值。
Try this code:
pr($responses);
您可以使用pr($ responses);爲格式化陣列! –