Hướng dẫn dùng uudecode trong PHP
- Hàm convert_uudecode() dùng để chuyển ngược một chuỗi ký tự đã được mã hóa từ hàm convert_uuencode() về dạng chuỗi ban đầu. - Lưu ý: Hàm này sẽ trả về một chuỗi mới chứ không làm thay đổi giá trị của chuỗi ban đầu.
Xem ví dụ - Hàm convert_uuencode() được dùng để mã hóa một chuỗi bằng việc sử dụng thuật toán uuencode. (Hàm này sẽ trả về một chuỗi mới chứ không làm thay đổi giá trị của chuỗi ban đầu) - Để sử dụng hàm convert_uuencode() thì ta dùng cú pháp như sau:
Xem ví dụ - Lưu ý: Ta có thể dùng hàm convert_uudecode() để chuyển ngược một chuỗi ký tự đã được mã hóa từ hàm convert_uuencode() về dạng chuỗi ban đầu.
Xem ví dụ (PHP 4, PHP 5, PHP 7, PHP 8) base64_decode — Decodes data encoded with MIME base64 Descriptionbase64_decode(string
Parametersstring The encoded data. strict If the Return Values Returns the decoded data or ExamplesExample #1 base64_decode() example
The above example will output: This is an encoded string winkelnkemper at googlemail dot com ¶ 11 years ago
walf ¶ 6 years ago
martinstaemmler at gmx dot net ¶ 13 years ago
Tom ¶ 15 years ago
Starson ¶ 15 years ago
debug ¶ 14 years ago
twm at twmacinta dot com ¶ 14 years ago
tobias at silverxnet dot de ¶ 18 years ago
user at sfdsfd dot com ¶ 3 years ago
nicolem2005 at gmail dot com ¶ 11 years ago
mcalwell ¶ 13 years ago
nsayer at kfu dot com ¶ 20 years ago
strlen($encode) % 4)
Klaus Fehrenbacher ¶ 19 years ago
dimagolov at yahoo dot com ¶ 13 years ago
zmorris at zsculpt dot com ¶ 14 years ago
base64_decode( $data ) );
alvaro at demogracia dot com ¶ 13 years ago
= base64_encode('The quick brown fox jumps over the lazy dog'); markandrewslade at gmail dot com ¶ 6 years ago
|