当前位置: 首页> 函数类别大全> 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 编码的字符串。
同类函数
  • 重复一个字符串 str_repeat

    str_repeat

    重复一个字符串
  • 转换字符串第一个字节为 0-255 之间的值 ord

    ord

    转换字符串第一个字节为0-255之间的值
  • 不区分大小写的strstr stristr

    stristr

    不区分大小写的strstr
  • 从字符串中删除 HTML和PHP标记 strip_tags

    strip_tags

    从字符串中删除HTML和PHP标记
  • 将数字格式化成货币字符串 money_format

    money_format

    将数字格式化成货币字符串
  • 二进制安全不区分大小写的字符串比较 strcasecmp

    strcasecmp

    二进制安全不区分大小写的字符串比较
  • 计算字符串的sha1哈希值 sha1

    sha1

    计算字符串的sha1哈希值
  • 查找指定字符在字符串中的最后一次出现 strrchr

    strrchr

    查找指定字符在字符串中的最后一次出现
热门文章