note 128437 added to function.mb-strrchr

From: Date: Fri, 28 Apr 2023 08:54:07 +0000
Subject: note 128437 added to function.mb-strrchr
Groups: php.notes 
Request: Send a blank email to php-notes+get-220392@lists.php.net to get a copy of this message
needle: / string: o/a/i if before_needle is 1 then needle is excluded: "o/a" if before_needle is false then needle is included: "/i" as code: $str="o/a/i"; $cs="/"; echo "if before_needle == 1 then needle is excluded"."\n"; $str="o/a/i"; $cs="/"; echo mb_strrchr ($str,$cs,1)."\n"; echo "if before_needle == false then needle is included"."\n"; $str="o/a/i"; $cs="/"; echo mb_strrchr ($str,$cs,0)."\n"; ---- Server IP: 45.112.84.4 Probable Submitter: 80.90.13.130 (proxied: 2a01:cb0d:cd:7f00:8271:cc75:d537:85d5) ---- Manual Page -- https://php.net/manual/en/function.mb-strrchr.php Edit -- https://main.php.net/note/edit/128437 Del: integrated -- https://main.php.net/note/delete/128437/integrated Del: useless -- https://main.php.net/note/delete/128437/useless Del: bad code -- https://main.php.net/note/delete/128437/bad+code Del: spam -- https://main.php.net/note/delete/128437/spam Del: non-english -- https://main.php.net/note/delete/128437/non-english Del: in docs -- https://main.php.net/note/delete/128437/in+docs Del: other reasons-- https://main.php.net/note/delete/128437 Reject -- https://main.php.net/note/reject/128437 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220392) next »