Home > Backend Development > PHP Tutorial > php读取文本限制输出几多条

php读取文本限制输出几多条

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:37:48
Original
869 people have browsed it

php读取文本限制输出多少条
$host = file('./aa/host.txt');
$keys = file('./aa/keys.txt');
for($j=count($host)-1;$j>=0;$j--){;
echo '

  • '.trim($keys[$j]).'
  • '.PHP_EOL;
    }
    ?>

    现在是全部输出了 怎么做限制输出多少条 请大侠帮忙完整写下啊
    Related labels:
    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template