Answers for "random string hex php"

PHP
2

generate random unique hex color code using php

echo '#' . substr(str_shuffle('ABCDEF0123456789'), 0, 6);
Posted by: Guest on July-12-2021
0

php string random

$string = bin2hex(openssl_random_pseudo_bytes(10)); // 20 chars
Posted by: Guest on October-14-2021

Browse Popular Code Answers by Language