php - What's the best practice in using if/else as a substitute for try/catch or vice versa? -


Possible duplicates:

I want to know that generally trying to speak / use grip is better or better to use this exception (at most) if I use other / Example: Do I have to hold a FileNotFoundException Should, or should I try and try to find the file first.

What will be the best way?

They are completely different, they are not interchangeable, and which are determined on the basis of proper and required is.

Edit: This answer is based on the original, unpublished question. Originally, it was completely done in:

PHP: if / other vs. attempt / hold

which is better


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -