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

    substr_replace

    ကြိုးအစားထိုးကြောင်း
  • output ကို format ချ string ကို printf

    printf

    outputကိုformatချstr
  • ကြိုး၏ soundex key ကိုတွက်ချက်ပါ soundex

    soundex

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

    htmlentities

    သက်ဆိုင်သောအက္ခရာမျာ
  • Arrays သို့ CSV strings ကိုခွဲခြမ်းစိတ်ဖြာ str_getcsv

    str_getcsv

    Arraysသို့CSVstrings
  • string ကိုစာလုံးအသေးပြောင်းပါ strtolower

    strtolower

    stringကိုစာလုံးအသေးပ
  • output ကိုတစ်ခုသို့မဟုတ်တစ်ခုထက်ပိုသောကြိုးများ echo

    echo

    outputကိုတစ်ခုသို့မဟ
  • တစ်ခုထွက်ပြေးလွတ်မြောက် string ကိုထုတ်ဖော်ပြသခဲ့သည် stripslashes

    stripslashes

    တစ်ခုထွက်ပြေးလွတ်မြေ
လူကြိုက်များသော ဆောင်းပါးများ