php关于destoon首页替换的问题

//index.php
<?php
$keys = file("a.txt");//$dir
$hangshu = count(file("a.txt"));
$zuoce1 = '';
for ($ww=$hangshu - 12;$ww<$hangshu - 0; $ww++){
$jqurl = explode("||@||",$keys[$ww]);
$fwh1 = trim($jqurl[0]);
$fwh3 = trim($jqurl[1]);
$fwh2 = trim($jqurl[2]);
$fwh4 = trim($jqurl[3]);

$zuoce1 .= '<li title="'.$fwh3.'"><span class="f_r">'.$fwh1.'</span><a href="http://www. .com/know/'.$fwh2.'.html" target="_blank">'.$fwh3.'</a></li>

'
;

}



$moban = file_get_contents('index.html');
$moban = str_replace('|||SS|||', $zuoce1, $moban);
echo $moban;

  

上一篇:超强Redis数据类型与应用场景总结!!(含完整实战案例,建议收藏)


下一篇:01.策略模式-上篇