Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

generate random string php

function gen_uid($l=5){
   return substr(str_shuffle("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"), 10, $l);
}
echo gen_uid();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #generate #random #string #php
ADD COMMENT
Topic
Name
8+9 =