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

stripos

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

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

stripos() function သည် string ကိုအခြား string တစ်ခုတွင်အခြား string တစ်ခုတွင်တွေ့ရသည့်နေရာကိုတွေ့ရှိသည်။

မှတ်ချက်။ ။ stripos() function သည်ကိစ္စတွင်မခံစားနိုင်ပါ။

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

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

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

နမူနာ

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

 <? PHP
ECHO strips ( "PHP ကိုနှစ်သက်တယ်, PHP အရမ်းချစ်တယ်!" , "PHP" ) ;
>

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

သဒ္ဒါ

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

    quoted_printable_decode

    တစ်ဦး8-bitstringကိုက
  • မျိုးစုံ variable တွေကိုသို့ parse strings parse_str

    parse_str

    မျိုးစုံvariableတွေက
  • string ကိုပြောင်းပြန် strrev

    strrev

    stringကိုပြောင်းပြန်
  • နှစ်ခု strings အကြားတည်းဖြတ်အကွာအဝေးတွက်ချက် levenshtein

    levenshtein

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

    str_ends_with

    stringကိုပေးထားသောsu
  • output ကို format ချ string ကို vprintf

    vprintf

    outputကိုformatချstr
  • သက်ဆိုင်သောအက္ခရာများအားလုံးကို HTML အဖွဲ့အစည်းများသို့ပြောင်းပါ htmlentities

    htmlentities

    သက်ဆိုင်သောအက္ခရာမျာ
  • သေးငယ်တဲ့တုံးသို့ string ကိုခွဲ chunk_split

    chunk_split

    သေးငယ်တဲ့တုံးသို့str