- var_dump: documentation ( source)
- base64_decode: documentation ( source)
- base64_encode: documentation ( source)
<?php
declare(strict_types=1);
echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n";
$a = base64_encode('1 hi all!');
var_dump((int)base64_decode($a));
echo "\nit's wrong (string)`1 hi all!` !== (int)`1`\n";
var_dump((int) '1 hi all!');