md5($str)
$length_link = 20; $hash = 'qwertyuioplkjhgfdsazxcvbnm123456789'; $uri = substr(str_shuffle($hash), 0, $length_link);