Home >Backend Development >PHP Tutorial >Parse error: syntax error, unexpected T_DO, expecting ';' in解决办法

Parse error: syntax error, unexpected T_DO, expecting ';' in解决办法

WBOY
WBOYOriginal
2016-06-13 10:27:481269browse

Parse error: syntax error, unexpected T_DO, expecting ';' in
提示这里错了。for ( ; do { $i
要怎么改?谢谢


PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->$sokey = split( "\\|", $sokey );$sort = "";if ( $rewrite == 1 ){                $i = 0;                for ( ;    do { $i 
".$indexfenlei[3][$i]."
"; $sort .= "".$indexfenleix[3][$i]." "; $sort .= "".$indexfenleix[6][$i]."
"; break; } } while ( 1 );}else if ( $rewrite == 2 ){ $i = 0; for ( ; do { $i
".$indexfenlei[3][$i]."
"; $sort .= "".$indexfenleix[3][$i]." "; $sort .= "".$indexfenleix[6][$i]."
"; break; } } while ( 1 );}

------解决方案--------------------
$i = 0;
for ( ; do { $i

//================
$max=count($indexfenlei[1]);
for($i=0;$i
这样?


------解决方案--------------------
do是毛。。
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