လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> strpos

strpos

ကြိုးများ၌အလွှာများ၏ပထမ ဦး ဆုံးဖြစ်ပျက်မှုကိုရှာပါ
အမည်:strpos
အမျိုးအစား:ကြိုး
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:string ကိုအခြား string တစ်ခုတွင်ပထမ ဦး စွာပေါ်လာသည့်နေရာ (စာလုံးအကြီးအသေး) တွင်ပေါ်လာသည်။

အဓိပ္ပါယ်နှင့်အသုံးပြုမှု

strpos() function သည် string ကိုအခြား string တစ်ခုတွင်ပထမ ဦး ဆုံးပေါ်လာသည်ကိုတွေ့ရှိရသည်။

မှတ်ချက် - strpos() function သည်စာလုံးအကြီးအသေးအရေးကြီးသည်။

မှတ်ချက် - ဒီ function က binary ဘေးကင်းလုံခြုံသည်။

ဆက်စပ်သောလုပ်ဆောင်ချက်များ:

  • stripos() - အခြား string တစ်ခုတွင်မည်သည့်နေရာတွင်တွေ့နိုင်သည့်နေရာတွင်ရှာဖွေပါ။
  • strripos() - အခြား string တစ်ခုတွင် string တစ်ခု၏နောက်ဆုံးဖြစ်ပျက်မှုကိုရှာဖွေပါ။
  • strrpos() - အခြား string တစ်ခုတွင် string တစ်ခု၏နောက်ဆုံးဖြစ်ပျက်မှု (စာလုံးအကြီးအသေး)

နမူနာ

string တစ်ခုတွင် "PHP" ၏ပထမအကြိမ်ဖြစ်ပျက်မှုကိုရှာဖွေပါ။

 <? PHP
ECHO struspos ( "PHP ကိုချစ်တယ်, ငါ PHP ကိုချစ်တယ်!" , "PHP" ) ;
>

သင်ကိုယ်တိုင်စမ်းကြည့်ပါ

သဒ္ဒါ

 Strpos ( string , find , start )
တေးရေး ဖေါ်ပြ
ကြိုး လိုအပ်ပါတယ် ရှာဖွေရန် string ကိုဖေါ်ပြသည်။
တေှ့မြင် လိုအပ်ပါတယ် ရှာဖွေခံရဖို့ string ကိုဖေါ်ပြသည်။
စက်နှိုး optional ကို။ ရှာဖွေမှုကိုစတင်ရန်နေရာကိုဖော်ပြပါ။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • 1-bit string ကိုကိုးကားချက်များနှင့်အတူပုံနှိပ်ထုတ်လွှင့် string ကိုကူးပြောင်း quoted_printable_encode

    quoted_printable_encode

    1-bitstringကိုကိုးကာ
  • ယုတ္တိ - ဟေဗြဲဘာသာကိုအမြင်အာရုံ - ဟေဗြဲဘာသာပြောင်းပါ hebrev

    hebrev

    ယုတ္တိ-ဟေဗြဲဘာသာကိုအ
  • ဇာတ်ကောင်တစ် ဦး အား Cyrillic ဇာတ်ကောင်တစ် ဦး မှအခြားတစ်ခုသို့ပြောင်းပါ convert_cyr_string

    convert_cyr_string

    ဇာတ်ကောင်တစ်ဦးအားCyr
  • အစားထိုး substring str_replace

    str_replace

    အစားထိုးsubstring
  • string ကိုပေးထားသော substring နှင့်အတူအဆုံးသတ် str_ends_with

    str_ends_with

    stringကိုပေးထားသောsu
  • အထူးအက္ခရာများကို HTML အဖွဲ့အစည်းများသို့ပြောင်းပါ htmlspecialchars

    htmlspecialchars

    အထူးအက္ခရာများကိုHTM
  • string တစ်ခု၏ MD5 hash တန်ဖိုးကိုတွက်ချက်ပါ md5

    md5

    stringတစ်ခု၏MD5hashတ
  • substring များ၏ကွိ၏အရေအတွက်ကိုတွက်ချက် substr_count

    substr_count

    substringများ၏ကွိ၏အရ
လူကြိုက်များသော ဆောင်းပါးများ