mb_stripos
အမှုတစ်ခု string ကိုအခြား string ကိုပထမ ဦး ဆုံးပေါ်လာဘယ်မှာအမှုတွေ့ကြုံ
function name: mb_stropos ()
သက်ဆိုင်သောဗားရှင်း: PHP 4> = 4.2.0, PHP 5, PHP 7
function ကိုဖော်ပြချက် - MB_Stripos () function သည်အခြား string တစ်ခု (ကိစ္စတွင်မခံစားနိုင်သော) ကိုရှာဖွေသည်။ stripsipos () function ကိုဆင်တူသော်လည်း MB_Stripos () MB_Stripos () Multibyte စာလုံးများကိုထောက်ပံ့သည်။
Syntax: MB_Stropos (string $ haystack, string $ အပ်ခြင်း, INT $ Offset = 0, string ကို $ encoding = mb_internal_encoding = int | falty
Parametermer
Value ကိုပြန်သွားပါ
ဥပမာ -
$haystack = "Hello, World!"; $needle = "world"; $position = mb_stripos($haystack, $needle); if ($position !== false) { echo "找到子字符串,位置为:" . $position; } else { echo "未找到子字符串"; }
ထုတ်လုပ်မှု -
找到子字符串,位置为:7
မှတ်စုများ