PCRE
PHP Manual

preg_last_error

(PHP 5 >= 5.2.0)

preg_last_error — Returns the error code of the last PCRE regex execution

Описание

int preg_last_error ( void )

Returns the error code of the last PCRE regex execution.

Возвращаемые значения

Returns one of the following constants (explained on their own page):


PCRE
PHP Manual