- base64_decode: documentation ( source)
- base64_encode: documentation ( source)
- date: documentation ( source)
<?php
$a = date('YmdHis');
$b = 'secret';
$c = "{$b}|{$a}";
$d = base64_encode($c);
$e = base64_decode($d);
echo $a . PHP_EOL;
echo $b . PHP_EOL;
echo $c . PHP_EOL;
echo $d . PHP_EOL;
echo $e . PHP_EOL;