当前位置: 首页> 函数类别大全> convert_uudecode

convert_uudecode

解码一个 uuencode 编码的字符串
名称:convert_uudecode
分类:字符串
所属语言:php
一句话介绍:解码 uuencode 编码字符串。

定义和用法

convert_uudecode() 函数对 uuencode 编码的字符串进行解码。

该函数常与 convert_uuencode() 函数一起使用。

实例

例子 1

对 uuencode 编码的字符串进行解码:

<?php
$str = ",2&5L;&\@=V]R;&0A `";
echo convert_uudecode($str);
?>

亲自试一试

例子 2

编码字符串,然后对它进行解码:

<?php
$str = "Hello world!";
// 对字符串进行编码
$encodeString = convert_uuencode($str);
echo $encodeString . "<br>";

// 对字符串进行解码
$decodeString = convert_uudecode($encodeString);
echo $decodeString;
?>

亲自试一试

语法

convert_uudecode(string)
参数 描述
string 必需。规定要解码的 uuencode 编码的字符串。
同类函数
  • 返回使用 htmlspecialchars() 和 htmlentities() 后的转换表 get_html_translation_table

    get_html_translation_table

    返回使用htmlspecialchars
  • 将特殊字符转换为HTML实体 htmlspecialchars

    htmlspecialchars

    将特殊字符转换为HTML实体
  • 查询语言和区域设置信息 nl_langinfo

    nl_langinfo

    查询语言和区域设置信息
  • 转换十六进制字符串为二进制字符串 hex2bin

    hex2bin

    转换十六进制字符串为二进制字符串
  • 重复一个字符串 str_repeat

    str_repeat

    重复一个字符串
  • implode的别名 join

    join

    implode的别名
  • 获取不匹配遮罩的起始子字符串的长度 strcspn

    strcspn

    获取不匹配遮罩的起始子字符串的长度
  • 根据指定格式解析输入的字符 sscanf

    sscanf

    根据指定格式解析输入的字符
热门文章