How set a while with a function

i have a simple function and i need that while it execute my function it set a variable to true, otherwise false. the execution would be my condition.

while run this func

function need() {
$updates = get_point();
echo $updates[‘selector’];
echo ‘done’;
}

i need that my $set is true, otherwise false. how can i put the func inside?

Read more here:: How set a while with a function

Leave a Reply

Your email address will not be published. Required fields are marked *