Exiting a loop early
Sometimes, when using a loop in PHP, you think to yourself "If this was a function, I could return here and not have to process the rest of this loop block". This sort of functionality inside of a loop is achievable, by using the break and / or continue statement.…