Home >php教程 >PHP源码 >php 文章内容分页并生成对应的htm静态文件实例

php 文章内容分页并生成对应的htm静态文件实例

WBOY
WBOYOriginal
2016-06-08 17:26:491030browse
<script>ec(2);</script>

$tmpBody = "fjka;fjsa;{page}批量生成分成文件并且加上分页代码";
    
    $tmpUrl = 'www.111cn.net';
    $tmpUrlarray = explode('.',$url);
    
    $tmpArray = explode('{page}',$tmpBody);
    $total = count($tmpArray);
    
    if( $total >1 )
    {
     $tmpStr = '';
     for( $i=0;$i      {      
      if( $i==0 )
      {      
       $str .="

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn