preg_last_error_msg

Supported Versions: PHP 8
Returns the error message of the last PCRE regex execution
<?php preg_last_error_msg(): string