0
제가 cakephp로 작업 중이고 실제로 문자열 형식 인 특정 변수를 사용하여 루핑하고 싶습니다.하지만 int로 순환 시키지만 여전히 응답은 아닙니다. 내부 루프 'hi'는 인쇄하지 않습니다. ....... 루프가 cakephp에서 작동하지 않습니다
$one = array();
echo intval($tolatitude[0]);
$start=intval($fromlatitude[0]);
$end=intval($tolatitude[0]);
for($i=(int)$start;$i<(int)$end;$i++)
{
//$one = $this->Place->find('all', array(
//'conditions' => array('Place.Latitude' => $i)
//));
//debug($one);
echo "Hi i m in loop";
}
중 하나가 PLZ 도와 알고있는 경우
....
"plz"는 하나의 단어가 아니므로 사용을 중지하십시오. – meagar