From c3fc93c1724312b0c226d490becb15c23d11bd1a Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Sat, 1 Sep 2007 18:36:14 +0000 Subject: [PATCH] add the new 3rd parameter (before_needle) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242052 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/strings/functions/stristr.xml | 47 +++++++++++++++++++++++-- reference/strings/functions/strstr.xml | 24 +++++++++++-- 2 files changed, 66 insertions(+), 5 deletions(-) diff --git a/reference/strings/functions/stristr.xml b/reference/strings/functions/stristr.xml index 3316f69a62..a53b9ea2ab 100644 --- a/reference/strings/functions/stristr.xml +++ b/reference/strings/functions/stristr.xml @@ -1,5 +1,5 @@ - + stristr @@ -12,6 +12,7 @@ stringstristr stringhaystack stringneedle + boolbefore_needle Returns all of haystack from the first @@ -39,6 +40,16 @@ + + before_needle + + + If &true; (the default is &false;), strstr returns + the part of the haystack before the first + occurence of the needle. + + + @@ -55,6 +66,36 @@ + + &reftitle.changelog; + + + + + + &Version; + &Description; + + + + + 6.0.0 + + Added the before_needle parameter. + + + + 4.3.0 + + strstr was made binary safe. + + + + + + + + &reftitle.examples; @@ -64,8 +105,8 @@ ]]> diff --git a/reference/strings/functions/strstr.xml b/reference/strings/functions/strstr.xml index 52cb655a30..e852333ae5 100644 --- a/reference/strings/functions/strstr.xml +++ b/reference/strings/functions/strstr.xml @@ -1,5 +1,5 @@ - + strstr @@ -12,6 +12,7 @@ stringstrstr stringhaystack stringneedle + boolbefore_needle Returns part of haystack string from the first @@ -54,6 +55,16 @@ + + before_needle + + + If &true; (the default is &false;), strstr returns + the part of the haystack before the first + occurence of the needle. + + + @@ -78,6 +89,12 @@ + + 6.0.0 + + Added the before_needle parameter. + + 4.3.0 @@ -98,9 +115,12 @@ ]]>