Answers for "php random 8-digit alphanumeric string"

PHP
1

generating-random-token-php

<?php
 
//Generate a random string.
$token = openssl_random_pseudo_bytes(16);
 
//Convert the binary data into hexadecimal representation.
$token = bin2hex($token);
 
//Print it out for example purposes.
echo $token;
?>
Posted by: Guest on January-19-2021

Code answers related to "php random 8-digit alphanumeric string"

Browse Popular Code Answers by Language