Forum Moderators: coopster
$foo = do_something() or die ("Couldn't do something");
If one throws an exception, should it always be caught, or is something like this okay?:
if (!$foo) {
throw new Exception ("Damn!");
}
Finally, how do you throw non-fatal errors? PHP is always belching up Warnings, but I can't find a warn() or similar function anywhere in the PHP docs/Google.
Thanks!