randstring php
snippet in php

randomstring php

user9901

//generates 13 character random unique alphanumeric id
echo uniqid();
//output - 5e6d873a4f597

randstring php

user6811

<?php 
    $random = substr(md5(mt_rand()), 0, 7);
    echo $random;
?>