diff --git a/reference/pcre/functions/preg-last-error.xml b/reference/pcre/functions/preg-last-error.xml index f4981d2b4f..e1bcb6a2bb 100644 --- a/reference/pcre/functions/preg-last-error.xml +++ b/reference/pcre/functions/preg-last-error.xml @@ -1,5 +1,5 @@ - + preg_last_error @@ -15,8 +15,32 @@ Returns the error code of the last PCRE regex execution. - + + + <function>preg_last_error</function> example + +)*[!?]/', 'foobar foobar foobar'); + +if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) { + print 'Backtrack limit was exhausted!'; +} + +?> +]]> + + &example.outputs; + + + + + + + &reftitle.returnvalues;