Re: [PHP] break statement usage

2002-01-26 Thread DL Neil
] break statement usage -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price blurted So what I'm wondering is, Is it bad coding practice to make heavy use of break statements in switch() flow control? That's exactly the point of the break statement, it was designed

Re: [PHP] break statement usage

2002-01-26 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then DL Neil blurted Private note: heard the one about throwing stones and living in glass houses? tip Try to keep your posts a little shorter if only for the sake of the dialup users ;) /tip this said by someone who:

RE: [PHP] break statement usage

2002-01-25 Thread Darren Gamble
Good day, Actually, using the break statement is the accepted, proper way to break out of a switch statement, just as it is in other programming languages. And yes, the break statement can be used to terminate other loops, such as while and for, just like in other languages. Using it there is

Re: [PHP] break statement usage

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price blurted So what I'm wondering is, Is it bad coding practice to make heavy use of break statements in switch() flow control? That's exactly the point of the break statement, it was designed to be used in a switch

Re: [PHP] break statement usage

2002-01-25 Thread Erik Price
On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote: tip Try to keep your posts a little shorter if only for the sake of the dialup users ;) /tip Thanks for the tip, but I find that a more verbose message makes explicit what I am asking. How many times have you seen I

Re: [PHP] break statement usage

2002-01-25 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Erik Price blurted On Friday, January 25, 2002, at 04:24 PM, Nick Wilson wrote: tip Try to keep your posts a little shorter if only for the sake of the dial-up users ;) /tip Do you suggest this tip whenever someone