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

sapi_windows_cp_set

process code စာမျက်နှာကိုတည်ဆောက်ခြင်း
အမည်:sapi_windows_cp_set
အမျိုးအစား:အမျိုးမျိုးစုပေါင်းသော
programming language:php
တစ်ကြောင်းဖြင့်အကျဉ်းချုပ်:လက်ရှိ script ၏ 0 င်းဒိုးကုဒ်စာမျက်နှာကိုသတ်မှတ်ပါ (ကုဒ်စာမျက်နှာ)

function name: sapi_windows_cp_set ()

သက်ဆိုင်သောဗားရှင်း: PHP 4.3.0 နှင့်အထက်

function ကိုဖော်ပြချက် - sapi_windows_cp_set () function ကိုလက်ရှိ script ၏ Windows Code စာမျက်နှာ (Code Page) ကိုသတ်မှတ်ရန်အသုံးပြုသည်။

Syntax: Bool Sapi_windows_CP_SET (INT $ codepage)

Parametermer

  • $ codepage: သတ်မှတ်ထားတဲ့ Windows Code Page ရဲ့ကိန်းတန်ဖိုး။

ပြန်လာတန်ဖိုး - Code Page ကိုအောင်မြင်စွာသတ်မှတ်ထားပါကစစ်မှန်ပါ။ မဟုတ်ရင်မှားယွင်းတဲ့ပြန်လာ။

ဥပမာ -

 // 设置当前脚本的Windows代码页为936(简体中文GB2312) if (sapi_windows_cp_set(936)) { echo "成功设置Windows代码页为936(简体中文GB2312)"; } else { echo "无法设置Windows代码页"; }

မှတ်စုများ

  • ဤလုပ်ဆောင်ချက်သည် Windows operating system များတွင်သာတရားဝင်သည်။
  • သတ်မှတ်ရမည့်ကုဒ်စာမျက်နှာသည်တရားဝင် Windows Code Page Value ဖြစ်ရမည်, သို့မဟုတ်ပါကချိန်ညှိခြင်းလုပ်ငန်းသည်ပျက်ကွက်လိမ့်မည်။
  • Code Page ကိုတည်ဆောက်ပြီးနောက် string ၏ input နှင့် output ကိုသတ်မှတ်ထားသောကုဒ်စာမျက်နှာအရပြောင်းလဲလိမ့်မည်။
သက်ဆိုင်သောဖင်ခှ်ရှင်းများ
  • ထူးခွားတဲ့ ID ကိုထုတ်လုပ်ပါ uniqid

    uniqid

    ထူးခွားတဲ့IDကိုထုတ်လ
  • သတ်မှတ်ထားသောအချိန်အထိ script ကိုအိပ်စက်ခြင်းကိုပြုလုပ်ပါ time_sleep_until

    time_sleep_until

    သတ်မှတ်ထားသောအချိန်အ
  • process code စာမျက်နှာကိုတည်ဆောက်ခြင်း sapi_windows_cp_set

    sapi_windows_cp_set

    processcodeစာမျက်နှာ
  • compiler ကွပ်မျက်ပြတ်တောက် __halt_compiler

    __halt_compiler

    compilerကွပ်မျက်ပြတ်
  • စက္ကန့်အနည်းငယ်နှင့် nanoseconds များအတွက်နှောင့်နှေး time_nanosleep

    time_nanosleep

    စက္ကန့်အနည်းငယ်နှင့်
  • 0 င်းဒိုး console ၏ output output buffer နှင့်သက်ဆိုင်သောသတ်မှတ်ထားသောစီးဆင်းမှုအတွက် VT100 အထောက်အပံ့ကိုရယူသည်။ sapi_windows_vt100_support

    sapi_windows_vt100_support

    0င်းဒိုးconsole၏outp
  • Code Page သည် UTF-8 နှင့်သဟဇာတဖြစ်စေရှိမရှိဖော်ပြသည် sapi_windows_cp_is_utf8

    sapi_windows_cp_is_utf8

    CodePageသည်UTF-8နှင့
  • အသုံးပြုသူရဲ့ browser ရှိသည့်လုပ်ဆောင်ချက်များကိုရယူပါ get_browser

    get_browser

    အသုံးပြုသူရဲ့browser
လူကြိုက်များသော ဆောင်းပါးများ