Home > Backend Development > PHP Tutorial > 怎么循环输入,来帮小弟我看看

怎么循环输入,来帮小弟我看看

WBOY
Release: 2016-06-13 10:05:03
Original
713 people have browsed it

如何循环输入,高手进来帮我看看

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->function page($x){  $a=$x/10;  $b=$x%10;  if($x'.$pages.'';?>
Copy after login




现在的输出形式是1 2 3 4 5 6 7 8 9 10

我想这样输出
1
2
3
4



请高手帮我上面的代码改一下,谢了

------解决方案--------------------
写到$pages .= 里面
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