Thursday, July 16, 2009

Encoding and Decoding the strings in PHP

base64_encode and base64_decode functions are used to encode and decode your strings.
Ex code:
';
$encode=base64_encode($str);
echo 'Encoded : ',$encode,'
';
echo 'Decoded : ',base64_decode($encode);
?>

0 comments: