Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function api(){
- $l='12';
- $api="";
- $r= "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
- srand((double)microtime()*1000000);
- for($i=0; $i<$l; $i++) {
- $api.= $r[rand()%strlen($r)];
- }
- return $api;
- }
- echo api(10); // return: KhTkHfddOa
Advertisement
Add Comment
Please, Sign In to add comment