Home  >  Article  >  Backend Development  >  求网址循环输出

求网址循环输出

WBOY
WBOYOriginal
2016-06-23 13:26:16964browse

求输出php代码
www.xxx.cn/?post=1
www.xxx.cn/?post=2
www.xxx.cn/?post=3
www.xxx.cn/?post=4
www.xxx.cn/?post=5
比如改成1000,就以输出1000个序列.谢谢.


回复讨论(解决方案)

for($i=1; $i<=1000; $i++)  echo "www.xxx.cn/?post=$i";

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
Previous article:php性能优化方法Next article:数据类型