mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
bdfa2647b2
commit
a657bdcaf4
1 changed files with 4 additions and 7 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue