[Php 4, Php 5, Php 7, Php 8] URLDECODE-Chuỗi được mã hóa URL được mã hóa — Decodes URL-encoded string — Decodes URL-encoded string Urldecode [Chuỗi Chuỗi được giải mã. Trả về chuỗi được giải mã. Ví dụ #1 urldecode [] ví dụurldecode[] exampleurldecode[] example Cảnh báo Superglobals $ _Get và $ _Request đã được giải mã. Sử dụng urldecode [] trên một phần tử trong $ _get hoặc $ _Request có thể có kết quả bất ngờ và nguy hiểm.urldecode[] on an element in $_GET or $_REQUEST could have unexpected and dangerous results. urldecode[] on an element in $_GET or $_REQUEST could have unexpected and dangerous results. Alejandro tại Devenet Dot Net ¶ ¶ 11 năm trướcSự mô tả
$string
]: Chuỗi[string $string
]: string[string $string
]: stringThông số
string
Trả về giá trị
Ví dụ
Ghi chú
Xem thêm
When the client send Get data, utf-8 character encoding have a tiny problem with the urlencode.
Consider the "º" character.
Some clients can send [as example]
foo.php?myvar=%BA
and another clients send
foo.php?myvar=%C2%BA [The "right" url encoding]
in this scenary, you assign the value into variable $x
$x store: in the first case "�" [bad] and in the second case "º" [good]
To fix that, you can use this function:
$string
0
string
0
string
1
string
2
string
3
string
4
string
5Trực quan ¶ ¶ ¶
16 năm trước
string
6
Jan Vratny ¶ ¶ ¶
14 năm trước
string
7
string
8
string
5Tomas tại Penajaca dot com dot br ¶ ¶ ¶
19 năm trước