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

setlocale

ဒေသဆိုင်ရာသတင်းအချက်အလက် setting
အမည်:setlocale
အမျိုးအစား:ကြိုး
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:ဒေသဆိုင်ရာအချက်အလက်များ (ဒေသဆိုင်ရာသတင်းအချက်အလက်) ကိုသတ်မှတ်ပါ။

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

setlocale() function ကိုဒေသတွင်းသတင်းအချက်အလက် (တိုင်းဒေသကြီးသတင်းအချက်အလက်) ကိုသတ်မှတ်ပါတယ်။

ဒေသတွင်းသတင်းအချက်အလက်သည်ပထဝီအနေအထားအတွက်ဘာသာစကား, ငွေကြေး, အချိန်နှင့်အခြားအချက်အလက်များဖြစ်သည်။

မှတ်ချက် - setlocale() function သည်ဒေသဆိုင်ရာအချက်အလက်များကိုလက်ရှိ script အတွက်သာပြောင်းလဲသွားသည်။

ထိပ်ဖျား: ဒေသဆိုင်ရာအချက်အလက်များကို setlocale(LC_ALL,NULL) မှတစ်ဆင့်စနစ်ကိုသတ်မှတ်နိုင်သည်။

ထိပ်ဖ်ား: အကယ်. သင်ကိန်းဂဏန်းပုံစံသတင်းအချက်အလက်ကိုရယူလိုပါက localeconv() function ကိုဖတ်ရှုပါ။

နမူနာ

ဒေသကိုအင်္ဂလိပ်လိုထားပြီး၎င်းကိုပုံမှန်အားဖြင့်ပြန်လည်သတ်မှတ်ပါ။

 <? PHP
ECHO Setlocale ( LC_ALL , "US" ) ;
ပဲ့တင်သံ "<br> <br>" ;
ပဲ့တင်သံ setlocale ( lc_all , null ) ;
>

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

သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • string ကို၏အစိတ်အပိုင်းတစ်ခုပြန်သွားပါ substr

    substr

    stringကို၏အစိတ်အပိုင
  • output ကို format ချ string ကို vprintf

    vprintf

    outputကိုformatချstr
  • str_replace ၏ဖြစ်ရပ်မှန် - အာရုံမခံစားနိုင်သောဗားရှင်း str_ireplace

    str_ireplace

    str_replace၏ဖြစ်ရပ်မ
  • 1-bit string ကိုကိုးကားချက်များနှင့်အတူပုံနှိပ်ထုတ်လွှင့် string ကိုကူးပြောင်း quoted_printable_encode

    quoted_printable_encode

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

    convert_cyr_string

    ဇာတ်ကောင်တစ်ဦးအားCyr
  • uuencode encoded string ကို decode convert_uudecode

    convert_uudecode

    uuencodeencodedstrin
  • ငွေကြေး strings သို့နံပါတ်များကို format လုပ်ပါ money_format

    money_format

    ငွေကြေးstringsသို့နံ
  • HTML အဖွဲ့အစည်းများအားသက်ဆိုင်ရာဇာတ်ကောင်များသို့ပြောင်းပါ html_entity_decode

    html_entity_decode

    HTMLအဖွဲ့အစည်းများအာ
လူကြိုက်များသော ဆောင်းပါးများ