Doc #51738 [Com]: problem with documentation

From: Date: Sun, 09 May 2010 20:05:06 +0000
Subject: Doc #51738 [Com]: problem with documentation
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4341@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51738&edit=1 ID: 51738 Comment by: markskilbeck at gmail dot com Reported by: ignazio dot mostallino at gmail dot com Summary: problem with documentation Status: Open Type: Documentation Problem Package: Documentation problem Operating System: Linux PHP Version: Irrelevant New Comment: That is not a contradiction. The function will match either 0 times, or 1 time. However, the grammar needs to be corrected. Previous Comments: ------------------------------------------------------------------------ [2010-05-04 14:52:37] ignazio dot mostallino at gmail dot com Description: ------------ This phrase in the documentation is a bit contradictory: "preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match." The first part says that preg_match returns the number of times a patterne matches, but the second part says that it only returns 0 or 1... I suggest to change it with something like: preg_match() returns either 0 (no match) or 1(at least one match is found), because it will stop searching after the first match. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51738&edit=1

« previous php.doc.bugs (#4341) next »