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

ucwords

စကားလုံးတစ်လုံးစီ၏ပထမစာလုံးကို string ထဲကိုစာလုံးအကြီးဖြင့်ပြောင်းပါ
အမည်:ucwords
အမျိုးအစား:ကြိုး
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:စကားလုံးတစ်လုံးစီ၏ပထမ ဦး ဆုံးဇာတ်ကောင်ကိုစာလုံးအကြီးအသေးအဖြစ်ပြောင်းပါ။

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

ucwords() function သည်စကားလုံးတစ်ခုစီ၏ပထမ ဦး ဆုံးဇာတ်ကောင်ကိုစာလုံးအကြီးအသေးအဖြစ်ပြောင်းလဲပေးသည်။

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

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

  • lcfirst() - ပထမ ဦး ဆုံးဇာတ်ကောင်ကိုစာလုံးအသေးအတွက် string ကိုပြောင်းပါ
  • strtolower() - strings ကိုစာလုံးအသေးအဖြစ်ပြောင်းပါ
  • strtoupper() - string ကိုစာလုံးအကြီးသို့ပြောင်းပါ
  • ucfirst() - ပထမစာလုံးကို string တစ်ခုအတွက်စာလုံးအကြီးအဖြစ်ပြောင်းပါ

သဒ္ဒါ

 UCwords ( string )
တေးရေး ဖေါ်ပြ
ကြိုး လိုအပ်ပါတယ် ပြောင်းလဲခံရဖို့ string ကိုဖေါ်ပြသည်။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ဒီဂျစ်တယ် format အချက်အလက်ကိုရယူပါ localeconv

    localeconv

    ဒီဂျစ်တယ်formatအချက်
  • string ကိုစာလုံးအကြီးသို့ပြောင်းပါ strtoupper

    strtoupper

    stringကိုစာလုံးအကြီး
  • output ကို format ချ string ကို printf

    printf

    outputကိုformatချstr
  • အရှည်အတွက် string ကိုဖြည့်ရန်အခြား string ကိုသုံးပါ str_pad

    str_pad

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

    strripos

    သတ်မှတ်ထားသောstringအ
  • တစ် ဦး string ကိုအပေါ်တစ် ဦး ပုပ် 1 နှစ်ပြောင်းလဲလုပ်ဆောင်ပါ str_rot13

    str_rot13

    တစ်ဦးstringကိုအပေါ်တ
  • တစ် ဦး string ကို၏ပထမ ဦး ဆုံးဖြစ်ပျက်မှုကိုရှာပါ strstr

    strstr

    တစ်ဦးstringကို၏ပထမဦး
  • တစ် string ကို output ကို print

    print

    တစ်stringကိုoutputကိ