Answers for "generate random colors in 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

Generate Random String in PHP

phpCopy<?php
 
echo "Output-1: ",bin2hex(random_bytes(10)),"\n";
 
echo "Output-2: ",bin2hex(random_bytes(20)),"\n";
 
echo "Output-3: ",bin2hex(random_bytes(24)),"\n";
 
?>
Posted by: Guest on April-23-2021

Code answers related to "generate random colors in php"

Browse Popular Code Answers by Language