rawurlencode
RFC 3986 အဆိုအရ URLs encoding
function name: RAWURLENDODEDODED ()
သက်ဆိုင်သောဗားရှင်း - PHP 4, PHP 5, PHP 7
အသုံးပြုမှု: Rawurlencode (string $ str): string ကို
function description: RAWurLenCode () function URL သည် string ကို encodes string ကို encodes encodes encode ကို hexadecimal အတွက်ကိုယ်စားပြုသော ASCII တန်ဖိုးကိုပြောင်းလဲစေပြီးအထူးဇာတ်ကောင်တစ် ဦး စီကိုရာခိုင်နှုန်းနိမိတ်လက်ခဏာ (%) နှင့်အတူ prevends ။
Parametermer
ပြန်လာတန်ဖိုး - URL encoded string ကိုပြန်ပို့ပါ။
ဥပမာ -
// 示例1: $str = "Hello World!"; $encodedStr = rawurlencode($str); echo $encodedStr; // 输出:Hello%20World%21 // 示例2: $str = "hello@php.net"; $encodedStr = rawurlencode($str); echo $encodedStr; // 输出:hello%40php.net // 示例3: $str = "中文"; $encodedStr = rawurlencode($str); echo $encodedStr; // 输出:%E4%B8%AD%E6%96%87
မှတ်စုများ