PHP 7.2.0 Beta 3 Released


Please answer this simple SPAM challenge: max(four, zero)?
(Example: nine)

The Note You're Voting On

jim at anderos dot com
3 years ago
If you are using a namespace, you must indicate the global namespace when using Exceptions.
namespace alpha;
    throw new \
Exception("Something is wrong!");
// throw new Exception(""); will fail

try {
} catch( \
Exception $e ) {
// catch( Exception $e ) will give no warning, but will not catch Exception
echo "ERROR: $e";


<< Back to user notes page

To Top