Venkat Adapa's Tech Blog
Friday, July 17, 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);
?>
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment