- substr: documentation ( source)
- time: documentation ( source)
- mt_rand: documentation ( source)
- hash: documentation ( source)
- strtoupper: documentation ( source)
<?php
$caseid = strtoupper(
substr(
hash("sha256", time() . mt_rand()
),0,6));
echo $caseid;