လက်ရှိတည်နေရာ: ပင်မစာမျက်နှာ> ဖန်ရှင်အမျိုးအစားများ> 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 ကို။ ရှာဖွေမှုကိုစတင်ရန်နေရာကိုဖော်ပြပါ။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • အဆိုပါ stream ဖို့ format ချ string ကိုရေးပါ fprintf

    fprintf

    အဆိုပါstreamဖို့form
  • တစ် ဦး string ကိုအပေါ်တစ် ဦး ပုပ် 1 နှစ်ပြောင်းလဲလုပ်ဆောင်ပါ str_rot13

    str_rot13

    တစ်ဦးstringကိုအပေါ်တ
  • သေးငယ်တဲ့တုံးသို့ string ကိုခွဲ chunk_split

    chunk_split

    သေးငယ်တဲ့တုံးသို့str
  • သတ်မှတ်ထားသော string အတွက်သတ်မှတ်ထားသော string ကို၏နောက်ဆုံးဖြစ်ပျက်မှုကိုတွက်ချက်ပါ (ကိစ္စတွင်မခံစားနိုင်မှု) strripos

    strripos

    သတ်မှတ်ထားသောstringအ
  • ဇာတ်ကောင်တစ် ဦး အား Cyrillic ဇာတ်ကောင်တစ် ဦး မှအခြားတစ်ခုသို့ပြောင်းပါ convert_cyr_string

    convert_cyr_string

    ဇာတ်ကောင်တစ်ဦးအားCyr
  • string တစ်ခု၏ MD5 hash တန်ဖိုးကိုတွက်ချက်ပါ md5

    md5

    stringတစ်ခု၏MD5hashတ
  • တစ် string ကို output ကို print

    print

    တစ်stringကိုoutputကိ
  • ကြိုးများ၌အလွှာများ၏ပထမ ဦး ဆုံးဖြစ်ပျက်မှုကိုရှာပါ strpos

    strpos

    ကြိုးများ၌အလွှာများ၏