Parse error: syntax error, unexpected T_DO, expecting ';' in
提示这里错了。for ( ; do { $i < count( $indexfenlei[1] ); ++$i,)
要怎么改?谢谢
PHP code
$sokey = split( "\\|", $sokey );
$sort = "";
if ( $rewrite == 1 )
{
$i = 0;
for ( ; do { $i < count( $indexfenlei[1] ); ++$i,)
{
$sort .= "
- ".$indexfenlei[3][$i]."
- ";
$sort .= "".$indexfenleix[3][$i]." ";
$sort .= "".$indexfenleix[6][$i]."
";
break;
}
} while ( 1 );
}
else if ( $rewrite == 2 )
{
$i = 0;
for ( ; do
{
$i < count( $indexfenlei[1] ); ++$i, )
{
$sort .= "- ".$indexfenlei[3][$i]."
- ";
$sort .= "".$indexfenleix[3][$i]." ";
$sort .= "".$indexfenleix[6][$i]."
";
break;
}
} while ( 1 );
}
------解决方案--------------------
$i = 0;
for ( ; do { $i < count( $indexfenlei[1] ); ++$i,)
//================
$max=count($indexfenlei[1]);
for($i=0;$i<$max;++$i){
这样?
------解决方案--------------------
do是毛。。