From 7ebabcb5a56f8865db60cafe8d456b30ca38c947 Mon Sep 17 00:00:00 2001 From: lacatoire Date: Thu, 10 Sep 2026 16:46:25 +0200 Subject: [PATCH] strpos: document that an empty needle matches at every position and returns the offset --- reference/strings/functions/strpos.xml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/reference/strings/functions/strpos.xml b/reference/strings/functions/strpos.xml index d788148cfd9e..5d3d550e7433 100644 --- a/reference/strings/functions/strpos.xml +++ b/reference/strings/functions/strpos.xml @@ -35,9 +35,15 @@ needle - + The string to search for. - + + + Passing an empty string as needle matches at + every position. strpos returns + offset when it is specified, or + 0 otherwise. + &strings.parameter.needle.non-string;