Web Development for 2012

Alexander Dickson - Web Developer covering PHP, jQuery / Javascript, XHTML, CSS, more

PHP Articles

Exiting a loop early

Filed under PHP. Published on Friday, 14th August 2009.

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.…

Stack Overflow Profile

view full profile »

About

I'm a web developer from the Sunshine Coast, Australia. more »