mb_strripos
ကိစ္စတွင် string တစ်ခုအတွက် string တစ်ခု၏နောက်ဆုံးတည်နေရာကိုတွေ့ကြုံခံစားပါ
function name: mb_stripos ()
သက်ဆိုင်သောဗားရှင်း: PHP 4> = 4.2.0, PHP 5, PHP 7
function ကိုဖော်ပြချက် - MB_Strripos () function သည်အခြား string တစ်ခုတွင်သတ်မှတ်ထားသော string ကိုပြန်ပို့သည်။ string ကိုရှာမတွေ့ပါကမှားယွင်းသောအယူမှားသည်။
Syntax: MB_Stripropos (string $ haystack, string $ အပ်ခြင်း, INT $ offset = 0, string ကို $ encoding = null): int | int | bool
Parametermer
Value ကိုပြန်သွားပါ
ဥပမာ 1:
$string = "Hello, World!"; $needle = "world"; $position = mb_strripos($string, $needle); if ($position !== false) { echo "找到了needle 在haystack 中的位置:$position"; } else { echo "未找到needle 在haystack 中"; }
ထုတ်လုပ်မှု -
找到了needle 在haystack 中的位置:7
ဥပမာ 2:
$string = "Hello, World!"; $needle = "WORLD"; $position = mb_strripos($string, $needle); if ($position !== false) { echo "找到了needle 在haystack 中的位置:$position"; } else { echo "未找到needle 在haystack 中"; }
ထုတ်လုပ်မှု -
找到了needle 在haystack 中的位置:7
မှတ်စုများ