convert_uuencode

定義和用法,語法,提示和注釋,例子,

定義和用法

convert_uuencode() 函式使用 uuencode 算法對字元串進行編碼。

語法

convert_uuencode(string)
參數
描述
string
必需。規定進行 uuencode 的字元串。

提示和注釋

注釋:本函式把所有字元串(包括二進制的)轉換為可列印的字元串,確保其網路傳輸的安全。
注釋:uuencode 的字元串比原字元串增大大約 35%。

例子

在本例中,我們將使用 convert_uuencode() 對字元串進行編碼:
<?php
$str = "Hello world!";
echo convert_uuencode($str);
?>
輸出:
,2&
5L;
&
\@=V]R;
&
0A `
PHP String 函式

相關詞條

熱門詞條

聯絡我們