Find the link URL and output it cyclically

Source: Internet
Author: User
Search for the URL and output the php code www.xxx.cn? Post1www. [this article is from www.68idc.cn] xxx.cn? Post2www.xxx.cn? Post3www.xxx.cn? Post4www.xxx.cn? For example, if post5 is changed to 1000, it will output 1000 sequences. Thank you. ------ solution -------------------

Search for the URL and output the php code www.xxx.cn /? Post = 1 www. [this article from hong NET internet (http://www.68idc.cn)] xxx.cn /? Post = 2 www.xxx.cn /? Post = 3 www.xxx.cn /? Post = 4 www.xxx.cn /? Post = 5 For example, change to 1000 to output 1000 sequences. Thank you. ------ solution -------------------

Search for URL loop output
Output php code
Www.xxx.cn /? Post = 1
Www. [this article from the Internet (http://www.68idc.cn)] xxx.cn /? Post = 2
Www.xxx.cn /? Post = 3
Www.xxx.cn /? Post = 4
Www.xxx.cn /? Post = 5
For example, if it is changed to 1000, 1000 sequences will be output. Thank you.
------ Solution ----------------------
For ($ I = 1; $ I <= 1000; $ I ++)
Echo "www.xxx.cn /? Post = $ I ";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.