PHP convert_uuencode() Function
Complete PHP String Reference
Definition and Usage
The convert_uuencode() function encodes a string using the uuencode
algorithm.
Syntax
| Parameter |
Description |
| string |
Required. The string to uuencode |
Tips and Notes
Note: This function encodes all
strings (including binary) into printable characters. This will fix any problems
with obscure binary data when storing in a
database or transmit data over a network. Remember to use the
convert_uudecode() function
before using the data again.
Note: Uuencoded data is about 35%
larger than the original.
Example
In this example we will encode a string using convert_uuencode():
<?php
$str = "Hello world!";
echo convert_uuencode($str);
?>
|
The output of the code above will be:
Complete PHP String Reference
Create a free Flash website with our simple, online web design editing platform. Stunning templates
and user-friendly tools make website building easy and fun.
Start Creating your free website now!

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- 32-bit and 64-bit versions
- And much more!
Download a free trial today!
|
|
|
|