Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active August 21, 2023 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/8a0de13a6fb13ae4da9c51a1b91c9705 to your computer and use it in GitHub Desktop.
Save mcsee/8a0de13a6fb13ae4da9c51a1b91c9705 to your computer and use it in GitHub Desktop.
<?
function dummy()
{
$atLeastOneElementWasFound = false;
while (!$atLeastOneElementWasFound) {
$elementSatisfies = doSomething();
if ($elementSatisfies) {
$atLeastOneElementWasFound = true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment