Is it good practice to use break and continue in PHP?

Posted by ajushi on Stack Overflow See other posts from Stack Overflow or by ajushi
Published on 2010-02-23T00:10:08Z Indexed on 2010/03/22 9:51 UTC
Read the original article Hit count: 301

Filed under:

Hi, is it good practice to use break and continue as sentinel for loops in PHP?

e.g.

if (!empty($var))
    break;

© Stack Overflow or respective owner

Related posts about php