php generate string starting a character code example
Example 1: randomstring php
//generates 13 character random unique alphanumeric id
echo uniqid();
//output - 5e6d873a4f597
Example 2: randstring php
<?php
$random = substr(md5(mt_rand()), 0, 7);
echo $random;
?>