14
tokenid
token_id
SYNOPSIS
token_id()
DESCRIPTION
token_id returns a unique identifier that can be used as a hidden form token.
EXAMPLE
php > require 'library/tokenid.php';
php > echo token_id();
1516f817fb2b3ab5d02779f83dae99b8
CODE
- function token_id() {
- return md5(uniqid(rand(), true)); // bin2hex(random_bytes(16))
- }
Comments