how to use rand in php with variable code example
Example 1: randstring php
<?php
$random = substr(md5(mt_rand()), 0, 7);
echo $random;
?>
Example 2: php rand int
random_int ( int $min , int $max );
<?php
$random = substr(md5(mt_rand()), 0, 7);
echo $random;
?>
random_int ( int $min , int $max );