- substr: documentation ( source)
- time: documentation ( source)
- mt_rand: documentation ( source)
- hash: documentation ( source)
<?php
$caseid = substr(hash("sha256", time() . mt_rand(100000,999999)),0,8);
$caseidn = time() . mt_rand(100000,999999);
print $caseid;print "\n";
print $caseidn;