What is the difference in error handling between global namespace and a specific namespace in PHP?

When handling errors in PHP, it is important to differentiate between global namespace errors and errors specific to a particular namespace. Global namespace errors can be caught using the global `set_error_handler` function, while errors specific to a namespace can be caught using the `namespace\set_error_handler` function.

// Global namespace error handling
set_error_handler("globalErrorHandler");

function globalErrorHandler($errno, $errstr, $errfile, $errline) {
    echo "Global Error Handler: $errstr";
}

// Specific namespace error handling
namespace\set_error_handler("namespaceErrorHandler");

function namespaceErrorHandler($errno, $errstr, $errfile, $errline) {
    echo "Namespace Error Handler: $errstr";
}