Jump to content

Do While statement


CageyJ0nnY

Recommended Posts

not tested, but this should work out

$counter = 10;
do {
echo "There are $counter green bottles sitting on the wall";
$counter--;
echo " and if one green bottle should accidentley fall there would be $counter green bottles sitting on the wall";
}
while ($counter > 0);

Link to comment
https://forums.phpfreaks.com/topic/178341-do-while-statement/#findComment-940574
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.