From e8e836ca34517fc7797abf94657f612b7ec72766 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Wed, 29 Aug 2001 18:05:20 +0000 Subject: [PATCH] Added note to split (TODO: add to spliti and other split/explode like functions) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@56251 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/regex.xml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/functions/regex.xml b/functions/regex.xml index 31043ab57b..18bdeca729 100644 --- a/functions/regex.xml +++ b/functions/regex.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (POSIX Extended) Regexps @@ -325,6 +325,16 @@ $passwd_list = split (":", $passwd_line, 5); + + + If there are n occurences of + pattern, the returned array will contain + n+1 items. For example, if + there is no occurence of pattern, an array with + only one element will be returned. Of course, this is also true if + string is emply. + + To parse a date which may be delimited with slashes, dots, or hyphens: @@ -467,4 +477,5 @@ sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: +vi: et:ts=1:sw=1:textwidth=78:syntax=sgml -->