阅读背景:

无法弄清楚如何确定SimpleXML节点是否为空

来源:互联网 

So I have this code:

所以我有这个代码:

foreach ($xml->PrintQuestion as $PrintQuestion) {

     //if hint doesn't exist, store question id
     if (!$PrintQuestion->content->multichoice->feedback->hint->Passage) {

         fwrite($fp, "<contentid filename=\"$value\">" . $PrintQuestion->attributes()->id . "</contentid>");

     }

}
foreach ($xm



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: