- var_dump: documentation ( source)
- rand: documentation ( source)
- md5: documentation ( source)
<?php
var_dump(md5(NULL));
var_dump(md5(TRUE));
var_dump(md5(1));
var_dump(md5(0));
var_dump(md5(""));
var_dump(md5(array()));
function gen_secured_random() { // cause random is the way
$a = rand(1337,2600)*42;
$b = rand(1879,1955)*42;
$a < $b ? $a ^= $b ^= $a ^= $b : $a = $b;
return $a+$b;
}
var_dump(gen_secured_random());
var_dump(gen_secured_random());
var_dump(gen_secured_random());
var_dump(gen_secured_random());
var_dump(gen_secured_random());