From d90e29837b0eefe1a2f2a8f65a4a8b5c5a1f86b1 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Tue, 29 Aug 2023 05:04:20 +0200 Subject: [PATCH] Document new `$before_needle` argument of `strrchr()` --- reference/strings/functions/strrchr.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reference/strings/functions/strrchr.xml b/reference/strings/functions/strrchr.xml index eb5ab4b6f189..b97bcd94f602 100644 --- a/reference/strings/functions/strrchr.xml +++ b/reference/strings/functions/strrchr.xml @@ -12,6 +12,7 @@ stringfalsestrrchr stringhaystack stringneedle + boolbefore_needle&false; This function returns the portion of haystack which @@ -43,6 +44,16 @@ &strings.parameter.needle.non-string; + + before_needle + + + If &true;, strrchr + returns the part of the haystack before the + first occurrence of the needle (excluding needle). + + + @@ -66,6 +77,12 @@ + + 8.3.0 + + The before_needle parameter was added. + + &strings.changelog.needle-empty; 8.0.0