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

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

WBOY
WBOYOriginal
2016-06-13 13:49:02683browse

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

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.'';
?>




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

我想这样输出
1
2
3
4



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

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