Fix bug #29712 - ereg() does not return TRUE

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@166540 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Tom Sommer 2004-08-16 22:35:06 +00:00
parent d5613d6ec9
commit ea9a85ca4a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
<refentry id="function.ereg">
<refnamediv>
@ -9,7 +9,7 @@
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>ereg</methodname>
<type>mixed</type><methodname>ereg</methodname>
<methodparam><type>string</type><parameter>pattern</parameter></methodparam>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>&amp;regs</parameter></methodparam>
@ -47,7 +47,7 @@
</simpara>
</note>
<simpara>
Returns &true; if a match for <parameter>pattern</parameter> was
Returns the length of the matched string if a match for <parameter>pattern</parameter> was
found in <parameter>string</parameter>, or &false; if no matches
were found or an error occurred.
</simpara>