Maison >développement back-end >tutoriel php > php foreach 为啥进入不了
php foreach 为什么进入不了
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> $RSQL=sprintf(self::GETQATT,$CID); $us=$this->mysql->getData($RSQl); echo $RSQL; $uc=count($us); if($uc>0) { foreach($us as $u) { echo $u['UID']; } }
if($uc>0) { print_r($us); foreach($us as $u) { echo "#TEST#"; echo $u['UID']; } } <br><font color="#e78608">------解决方案--------------------</font><br>