Home > Backend Development > PHP Tutorial > Parse error: syntax error, unexpected T_DO, expecting '' in解决方案

Parse error: syntax error, unexpected T_DO, expecting '' in解决方案

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 11:52:03
Original
1451 people have browsed it

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


$sokey = split( "\\|", $sokey );<br />$sort = "";<br />if ( $rewrite == 1 )<br />{<br />				$i = 0;<br />				for ( ;	do { $i < count( $indexfenlei[1] );	++$i,)<br />								{<br />												$sort .= "<dl><dt><a href='list.php?id-".$indexfenlei[1][$i]."-pn-0.html'>".$indexfenlei[3][$i]."</a></dt><dd>";<br />												$sort .= "<a href='list.php?id-".$indexfenleix[1][$i]."-pn-0.html'>".$indexfenleix[3][$i]."</a> ";<br />												$sort .= "<a href='list.php?id-".$indexfenleix[4][$i]."-pn-0.html'>".$indexfenleix[6][$i]."</a> </dd></dl>";<br />												break;<br />								}<br />				} while ( 1 );<br />}<br />else if ( $rewrite == 2 )<br />{<br />				$i = 0;<br />				for ( ;	do<br />	{<br />	$i < count( $indexfenlei[1] );	++$i,	)<br />								{<br />												$sort .= "<dl><dt><a href='list-".$indexfenlei[1][$i]."-0.html'>".$indexfenlei[3][$i]."</a></dt><dd>";<br />												$sort .= "<a href='list-".$indexfenleix[1][$i]."-0.html'>".$indexfenleix[3][$i]."</a> ";<br />												$sort .= "<a href='list-".$indexfenleix[4][$i]."-0.html'>".$indexfenleix[6][$i]."</a> </dd></dl>";<br />												break;<br />								}<br />				} while ( 1 );<br />}
Copy after login

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

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


------解决方案--------------------
do是毛。。

Related labels:
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