Norway


The convert_uuencode() is a built-in in PHP. The convert_uuencode() encodes a string using the uuencode algorithm.
Uuencode encoding translates all strings (including binary ) into printable characters which makes them safe for network transmissions.

Syntax:

String convert_uuencode($string)

Parameters: This function accepts a single parameter $string which is the string, required to uuencode.

Return value: This function returns a string which represents the uuencoded data.

Examples:

Input : "Good Morning..."
Output : /1V]O9"!-;W)N:6YG+BXN
`

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

Below program illustrate the convert_uuencode() function:

<?php

// PHP program illustrate the 
// convert_uuencode() 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);
echo $decodeString;

?> 

Output:

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

Reference:
http://php.net/manual/en/function.convert-uuencode.php


- avatar - PHP | convert_uuencode() Function &#8211; GeeksforGeeks

If you like and would like to contribute, you can also write an using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.







Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here