How set a while with a function

Question

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?

0
, , DevBeppe 4 years 2020-02-12T08:41:22-05:00 0 Answers 70 views 0

Leave an answer

Browse
Browse