If i had a code saying
How would i make it echoPHP Code:<?php
echo "Start<br>"
$start = 1
$end = 10
echo "End<br>"
?>
Start
Number 1
Number 2
Number 3
Number 4
Number 5
Number 6
Number 7
Number 8
Number 9
Number 10
End

If i had a code saying
How would i make it echoPHP Code:<?php
echo "Start<br>"
$start = 1
$end = 10
echo "End<br>"
?>
Start
Number 1
Number 2
Number 3
Number 4
Number 5
Number 6
Number 7
Number 8
Number 9
Number 10
End
Lets set the stage on fire, and hollywood will be jealous.
<?php
while($start == '1' && $end == '10' && $num == '0') {
if($start != '0')
echo "Start"
$start - 1;
} else {
if($end != '0') {
$num + 1;
echo "Number";
echo " ";
echo $num;
echo "<br />;
}
else {
echo "End";
}
?>
Something along the lines of that..
How could this hapen to meeeeeeeeeeeeeee?lol.
It says
But thanks anyway +RepParse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home/tom743/public_html/count.php on line 6![]()
Lets set the stage on fire, and hollywood will be jealous.
Reconix.. that is a stupid way to do that.
PHP Code:<?php
echo "Start <br />";
for($i = 1; $i <= 10; $i++) {
echo "Number $i <br />";
}
?>
No problem, thanks![]()
That made me laugh in all honesty... LOL
Result:
Code:Start Number 1 Number 2 Number 3 Number 4 Number 5 Number 6 Number 7 Number 8 Number 9 Number 10 EndI commented it for you.PHP Code:<?
## "Shouts" Start
echo("Start<br>");
## State its 1.
$n = 1;
## while, when N more than 11 (10)
while($n < 11)
{
## "Shouts" Number and the result.
echo("Number ".$n."<br>");
## Increments each time
$n = $n + 1;
}
## "Shouts" End
echo("End<br>");
?>![]()
Hi, names James. I am a web developer.
Want to hide these adverts? Register an account for free!