Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

rand string php

    function RandomString()
    {
        $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
        $randstring = '';
        for ($i = 0; $i < 10; $i++) {
            $randstring = $characters[rand(0, strlen($characters))];
        }
        return $randstring;
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #rand #string #php
ADD COMMENT
Topic
Name
7+2 =