Posted by Rik on 01/06/07 21:08
J.O. Aho wrote:
> inside functions 'return' is a good way to stop execute things in
> program, while on your page 'exit' had been a better option.
Don't forget: return can also end includes.
The times I've seen horribly nested if statements all over files that were
only used as includes are numerous. A simple return will clear a lot of
nesting, and make those scripts a lot more readable.
--
Rik Wasmus
[Back to original message]
|