쿼리 결과를 읽는 방법 : 내가 얻을 echo debug($result);
나는 다음과 같은 CakePHP의에서 쿼리를
:
lnguserID = 10;
$result = $this->Mymodel->find('all', array(
'fields' => array('Mymodel.intPhoneID'),
'conditions' => array('Mymodel.intUserid'=> $lnguserID)
));
이 같은 결과를 디버깅 할 때
array(
(int) 0 => array(
'Mymodel' => array(
'intPhoneID' => (int) 3975
)
)
)
어떻게 결과 배열에서이 id
: 3975
에 직접 액세스 할 수 있습니까? 예 :
result['Mymodel']['intPhoneID'];
다른 쿼리에서 사용하고 싶습니다.
hhhhh, 안녕, Working thanks. – OussamaLord
도움을 주시면 [내 대답 수락] (http://meta.stackexchange.com/questions/16721/how-does-accept-rate-work/65088#65088) – Kuf