string convert uuencode function - returns encoded string by using uuencode algorithm

string convert_uuencode function - returns encoded string by using uuencode algorithm

string-convert-uuencode-function-example-in-php.php


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>string convert_uuencode function - returns encoded string by using uuencode algorithm</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="Author" content="Md Iqbal Hosan">
  <meta name="title" content="string convert_uuencode function - returns encoded string by using uuencode algorithm">
  <meta name="keywords" content="php, example, code, array, function, convert_uuencode, string">
  <meta name="description" content="string convert_uuencode function - returns encoded string by using uuencode algorithm">
  <style>
   h2, h4{background:#bbb; color:#000088;}
   h2{ padding:3px; margin:3px; font-size:20px;}
   h4{ padding:2px; margin:2px; font-size:17px;}
   p{padding:2px; margin:2px; color:#3333Fd;}
   body{ background:#FFFFFc;}
  </style>
 </head>
 <body>
  <h2>string convert_uuencode function - returns encoded string by using uuencode algorithm</h2>
  <pre>
   <?php
    /*
     ------------------------------------------
     let's make a string to test the function
     ------------------------------------------
    */
    $myString = "i love facebook and i want it to be opened.";
    echo "<h4>Output of myString</h4>";
    print "<p>$"."myString = {$myString}</p>";
    /*
     --------------------------------------------------------------------
     now i want to encode the string by using convert_uuencode function
     --------------------------------------------------------------------
    */
    $encodedString = convert_uuencode($myString);
    echo "<h4>Output of encodedString by using string convert_uuencode function</h4>";
    print "<p>$"."encodedString = {$encodedString}</p>";
   ?>
  </pre>
 </body>
</html>

string convert_uuencode function - returns encoded string by using uuencode algorithm - output in the browser

No comments:

Post a Comment

leave your comments here..