Skip to content

Instantly share code, notes, and snippets.

@mcsee

mcsee/declarativeFlag.php

Last active Apr 5, 2021
Embed
What would you like to do?
<?
function dummyFunction()
{
$atLeastOneElementWasFound = true;
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