|
preg_last_error
Returns the error code of the last PCRE regex execution
(PHP 5 >= 5.2.0)
Return ValuesReturns one of the following constants (explained on their own page):
Code Examples / Notes » preg_last_errorpons+phpnote
For your convenience: PREG_NO_ERROR = 0 PREG_INTERNAL_ERROR = 1 PREG_BACKTRACK_LIMIT_ERROR = 2 PREG_RECURSION_LIMIT_ERROR = 3 PREG_BAD_UTF8_ERROR = 4 |