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

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

WBOY
WBOYOriginal
2016-06-13 11:37:48859browse

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;
    }
    ?>

    现在是全部输出了 怎么做限制输出多少条 请大侠帮忙完整写下啊
    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