From 3974f6c102997c33957d3ceb04cad155123e2649 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 10 Sep 2004 14:34:21 +0000 Subject: [PATCH] Return value (bug #29712) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168311 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/regex/functions/ereg.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/regex/functions/ereg.xml b/reference/regex/functions/ereg.xml index b07e698962..87a3e2be0f 100644 --- a/reference/regex/functions/ereg.xml +++ b/reference/regex/functions/ereg.xml @@ -1,5 +1,5 @@ - + @@ -50,6 +50,8 @@ Returns the length of the matched string if a match for pattern was found in string, or &false; if no matches were found or an error occurred. + If the optional parameter regs was not passed or + the length of the matched string is 0, this functions returns 1. The following code snippet takes a date in ISO format