Return value (bug #29712)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168311 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2004-09-10 14:34:21 +00:00
parent f9295c2a6a
commit 3974f6c102

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
<refentry id="function.ereg">
<refnamediv>
@ -50,6 +50,8 @@
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.
If the optional parameter <parameter>regs</parameter> was not passed or
the length of the matched string is 0, this functions returns 1.
</simpara>
<para>
The following code snippet takes a date in ISO format