我已经为此苦苦挣扎了几个小时,我不知道为什么不起作用。我需要使用YouTubeAPI和Zend从VideoID获取详细信息,所以我创建了一个这样的函数functionlistYoutubeVideo($id){$videos=array();try{$yt=newZend_Gdata_YouTube();$videoFeed=$yt->getVideoEntry($id);foreach($videoFeedas$videoEntry){$videoThumbnails=$videoEntry->getVideoThumbnails();$videos[]=array('thumbna