Home > Backend Development > PHP Tutorial > 不知道是错哪了,好像还是死循环

不知道是错哪了,好像还是死循环

WBOY
Release: 2016-06-13 10:33:37
Original
951 people have browsed it

不知道是哪里错了,好像还是死循环

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->result();function result(){    while($_POST["m"]&&$_POST["n"])    {$outmap = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);$arr[20]=array(0);$j=0;do{    for($t=0;$t=0&& $arr[$n]>=$nMaxElm;++$arr[--$n]);    if($n
Copy after login


------解决方案--------------------
估计楼主把while($_POST["m"]&&$_POST["n"])
改成if($_POST["m"]&&$_POST["n"])你的程序会给你输出你想要的结果。



探讨

PHP code

result();
function result()
{
while($_POST["m"]&&$_POST["n"])
{
$outmap = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
$arr[20]=array(0);
$j=0;
do{
for……

------解决方案--------------------
PHP code
while($_POST["m"]&&$_POST["n"])<div class="clear">
                 
              
              
        
            </div>
Copy after login
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