How to display two diferent text styles by Loop
Posted: Sun May 23, 2004 9:33 am
Hi!
I know topic name sounds stupid, but how can I display something like this:
0
1
2
3
4
Here is my code:
This is the result:
0
1
2
3
4
Please help me! Thank you!
I know topic name sounds stupid, but how can I display something like this:
0
1
2
3
4
Here is my code:
Code: Select all
<?php
for($i=0;$i<10;$i++){
$x = 0;
if($x == 0){
echo "$i<br>";
$x++;
}
else
{
echo "<b>$i</b><br>";
$x--;
}
}
?>This is the result I need:0
1
2
3
4
0
1
2
3
4
Please help me! Thank you!