- base64_decode: documentation ( source)
- base64_encode: documentation ( source)
- rand: documentation ( source)
<?php
$content = rand(0,100)."|BE CSE|1st Sem|English|test|test|test|2|15|2015-07-13 05:00:00~~".rand(0,100)."|BE CSE|1st Sem|English|test|test|test|2|15|2015-07-13 05:00:00~~".rand(0,100)."|BE CSE|1st Sem|English|test|test|test|2|15|2015-07-13 05:00:00";
$encoded_form = base64_encode($content);
echo 'encoded form :: '.$encoded_form;
echo "=========";
$decode_data = base64_decode($encoded_form);
echo "Decoded Data :: ".$decode_data;