PHP convert_uudecode() 函数

PHP convert_uudecode() 函数

PHP convert_uudecode() 函数是预定义的PHP字符串函数,用于解码uuencode编码的字符串。它将解码后的数据作为字符串返回。

语法

string convert_uudecode ( string $data );
参数 描述 必需/可选
字符串 要解码的uu编码字符串 必需

示例1

<?php
str ="*:F%V851P;VEN=``` ` "; // javatpoint
echo "Your Decode string is :".str;
encodeString ="<br>"."By using 'convert_uudecode()' function your encoded string is : ". convert_uudecode(str);
echo $encodeString . "<br>";
?>

输出:

Your Decode string is :*:F%V851P;VEN=``` ` 
By using 'convert_uudecode()' function your encoded string is : javaTpoint

示例2

<?php
str ="javatpoint"; //*:F%V851P;VEN=``` `  
echo "Your Encoded string is :".str;
decodeString ="<br>"."By using 'convert_uudecode()' function your decoded string is : ". convert_uuencode(str);
echo $decodeString . "<br>";
?>

输出:

Your Encoded string is :javatpoint
By using 'convert_uudecode()' function your decoded string is : *:F%V871P;VEN=``` ` 

示例3

<?php 
// Decode the string
str1 =("+22!L;W9E(%!(4\"`\n`");
echo "Your Encoded string is :".str1;EncodedString ="<br>"."By using 'convert_uudecode()' function your encoded string is : ". convert_uudecode(str1);
echoEncodedString . "<br>"."<br>";

str2 = "I love PHP!";
echo "Your Decoded string is :".str2;
uuencodeString ="<br>"."By using 'convert_uuencode()' function your encoded string is : ". convert_uuencode(str2);
echo $uuencodeString . "<br>";
?>

输出:

Your Encoded string is :+22!L;W9E(%!(4"` `
By using 'convert_uudecode()' function your encoded string is : I love PHP!

Your Decoded string is :I love PHP!
By using 'convert_uuencode()' function your encoded string is : +22!L;W9E(%!(4"` ` 

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程