PHP | convert_uuencode() Function
The convert_uuencode() is a built-in function in PHP. The convert_uuencode() function encodes a string using the uuencode algorithm.
Uuencode encoding translates all strings (including binary data) 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 : /22!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
Recommended Posts:
- How to call a function that return another function in JavaScript ?
- How to get the function name inside a function in PHP ?
- How to get the function name from within that function using JavaScript ?
- PHP | tan( ) Function
- PHP | Ds\Set contains() Function
- PHP | end() Function
- PHP | pos() Function
- PHP | key() Function
- PHP | Ds\Map put() Function
- p5.js | value() Function
- p5.js | max() function
- PHP | Ds\Map xor() Function
- D3.js | d3.rgb() Function
- p5.js | pow() function
- p5.js | day() function
If you like GeeksforGeeks and would like to contribute, you can also write an article 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 Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


