Modified ambiguous wording for return values and added return.falseproblem warning. This fixes Bug #62161

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326871 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sherif Ramadan 2012-07-30 03:37:52 +00:00
parent bdfa2647b2
commit a657bdcaf4

View file

@ -153,14 +153,11 @@ Array
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<function>preg_match</function> returns the number of times
<parameter>pattern</parameter> matches. That will be either 0 times
(no match) or 1 time because <function>preg_match</function> will stop
searching after the first match. <function>preg_match_all</function>
on the contrary will continue until it reaches the end of
<parameter>subject</parameter>.
<function>preg_match</function> returns &false; if an error occurred.
<function>preg_match</function> returns 1 if the <parameter>pattern</parameter>
matches given <parameter>subject</parameter>, 0 if it does not, or &false;
if an error occurred.
</para>
&return.falseproblem;
</refsect1>
<refsect1 role="changelog">