SyntaxFix
Write A Post
Hire A Developer
Questions
I would prefer to do this by return. Put the looping part in private function and return when you want to break the loop.