Skip to content

Instantly share code, notes, and snippets.

@mudathirlawal
Created July 12, 2017 16:26
Show Gist options
  • Save mudathirlawal/60b166c8ba97ff235b717bfa8981f2d8 to your computer and use it in GitHub Desktop.
Save mudathirlawal/60b166c8ba97ff235b717bfa8981f2d8 to your computer and use it in GitHub Desktop.
null created by mudathirlawal1 - https://repl.it/JYZ4/3
//do-while loop:
$nthCount = 1;
do {
$roll = rand(1, 6);
echo "<p>At the #$nthCount throw, die displays $roll</p>";
echo "<p>-----------------------------------</p>";
$nthCount += 1;
} while ($roll != 6);
@mudathirlawal
Copy link
Author

Well, just take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment