diff --git a/reference/pcre/functions/preg-match.xml b/reference/pcre/functions/preg-match.xml index 2f012fe1d0..b95df00939 100644 --- a/reference/pcre/functions/preg-match.xml +++ b/reference/pcre/functions/preg-match.xml @@ -153,14 +153,11 @@ Array &reftitle.returnvalues; - preg_match returns the number of times - pattern matches. That will be either 0 times - (no match) or 1 time because preg_match will stop - searching after the first match. preg_match_all - on the contrary will continue until it reaches the end of - subject. - preg_match returns &false; if an error occurred. + preg_match returns 1 if the pattern + matches given subject, 0 if it does not, or &false; + if an error occurred. + &return.falseproblem;