Esempio n. 1
0
 //当文件没结束
 $line = fgets($fopen);
 //读取一行
 if (preg_match($onPattern, $line)) {
     $strMain = $fun->getMainStrViaONOFF($line, $fopen);
     // echo $strMain;	//die;
     $arrSPONOFF = $fun->splitMainStrToArr($strMain);
     // print_r($arrSPONOFF);	//die;
     $funPattern = $fun->getFunPattern($strMain);
     // print_r($funPattern); //die;
     $arrFunSP = $fun->findSplitIncFunFlagToArr($funPattern, $arrSPONOFF);
     switch ($funPattern) {
         case $arrFunPattern["proTitle"]:
             //产品标题
             $strCirResult = $fun->cirProTitle($arrRPProTitle, $arrFunSP);
             $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPProTitle);
             filterEcho($strCombitResult);
             break;
         case $arrFunPattern['video']:
             //视频
             $strCirResult = $fun->cirVideo($arrRPVedioUrl, $arrFunSP);
             $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPVedioUrl);
             filterEcho($strCombitResult);
             break;
         case $arrFunPattern["proPicSrc"]:
             //产品图片
             $strCirResult = $fun->cirProPic($arrRPProPic, $arrFunSP);
             $strCombitResult = $fun->combitStrToStr($arrSPONOFF, $arrFunSP, $strCirResult, $arrRPProPic);
             filterEcho($strCombitResult);
             break;
         case $arrFunPattern["banner"]: