PHP convert_uudecode()函数用法详解

2021年3月21日15:48:06 发表评论 621 次浏览

convert_uudecode()是PHP中的内置函数。此函数解码使用以​​下字符编码的uuencoded字符串

convert_uuencode()函数。 uudecode()函数使字符串成为可打印形式。

语法如下:

string convert_uudecode(string)

参数:

uuencoded字符串将被解码。

返回类型:

它返回一个解码的字符串。

例子:

Input : /22!L;W9E(&UY(&EN9&EA`
 Output : I love my india

下面的程序显示了convert_uudecode()函数的工作:

例子

<?php 
  
// PHP program illustrate the 
// convert_uudecode() function 
  
// Input String 
$str = "geeks for geeks!" ; 
  
// Encoding the string 
$encodeString = convert_uuencode( $str ); 
  
// printing encoded string 
echo $encodeString . "\n" ; 
  
// Decode the string 
$decodeString = convert_uudecode( $encodeString ); 
  
// Printing string in decoded format
echo $decodeString ; 
  
?>

输出如下:

09V5E:W, @9F]R(&=E96MS(0``
`

geeks for geeks!

木子山

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: