For statements output by a loop, where some values need to be changed. how can this post end with the statement output by rightnow9 at 2013-01-2216:36:37 then & g for loop? what should I do if some values need to be changed?
This post was last edited by rightnow9 at 16:36:37
The output content of the above called Database, fourth
You need to add class = "last" and how to modify the following php code so that he can add class = "last" at the fourth time"
??$arr=explode("|",$_MODULE[linknamea]);
??$arrlink=explode("|",$_MODULE[linka]);
??for($t = 0; $t
????????
??????echo ''.$arr[$t].'';
??????}??
?>
------ Solution --------------------
$ Arr = explode ("
------ Solution --------------------
", $ _ MODULE [linknamea]);
$ Arrlink = explode ("
------ Solution --------------------
", $ _ MODULE [linka]);
For ($ t = 0; $ t
If ($ t = 3 ){
Echo''. $ Arr [$ t].''; Continue;
}
Echo'
'. $ Arr [$ t].'';
}
?>
Add if to judge
------ Solution --------------------
$ Arr = explode ("
------ Solution --------------------
", $ _ MODULE [linknamea]);
$ Arrlink = explode ("
------ Solution --------------------
", $ _ MODULE [linka]);
$ Count = count ($ arr );
For ($ t = 0; $ t <$ count $ t ++ ){
If ($ t = 3)
Echo'
'. $ Arr [$ t].'';
Else
} Echo'
'. $ Arr [$ t].'';
?>
Try the above code to meet your needs
------ Solution --------------------
$arr=explode("