Random unique alphanumeric string

HI gays ,

Here is a function to generate random unique alphanumeric string using PHP,

I am sure it will help some one to solve their problem

  function get_rand_txn_id($length = 10) {


        $randstring = '';
        $string_array = array_merge(range(0, 9), range('a', 'z'), range('A', 'Zå'));

        for ($i = 0; $i < $length; $i++) {
            $randstring .= $string_array[array_rand($string_array)];
        }

        return $randstring;
    }

 

 

 

 

 

 18,893 total views,  1 views today

20 Comments

  1. soins du corps

    June 6, 2015 at 12:27 pm

    I just could not go away your site before suggesting that I really loved the usual information a person supply on your guests? Is gonna be again frequently in order to check out new posts.

  2. Hey, this was a really high quality article. I’d like to write like this also – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.

  3. living in france

    June 19, 2015 at 7:08 pm

    I kіnd οof understand, buut still don’t

  4. Ι used to be able tto find ɡoօd info from your blog posts.

  5. Simply want to say your article is as astounding. The clearness in your post is just excellent and i can assume you’re an expert on this subject. Well with your permission let me to grab your RSS feed to keep updated with forthcoming post. Thanks a million and please continue the gratifying work.

  6. This is very interesting, You’re a very skilled blogger.
    I have joined your feed and look forward to seeking more of your wonderful post.
    Also, I’ve shared your site in my social
    networks!

  7. Choice Computer Technologies

    July 11, 2015 at 12:19 pm

    Good day very nice website!! Guy .. Beautiful .. Superb .. I’ll bookmark your website and take the feeds also…I am satisfied to seek out a lot of useful information here within the post, we’d like develop extra strategies in this regard, thanks for sharing.

  8. limo service from nashua nh to logan airport

    July 13, 2015 at 3:53 am

    You have brought up a very excellent points , thankyou for the post.

  9. It is really a great and helpful piece of information. I am glad that you shared this helpful information with us. Please keep us up to date like this. Thank you for sharing.

  10. I just could not leave your site prior to suggesting that I actually
    enjoyed the standard info a person provide for your visitors?

    Is gonna be again regularly in order to inspect new posts

  11. Very good post. I will be dealing with some of these issues as well..

  12. It is really a great and useful piece of info. I’m glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

  13. Hello There. I found your blog using msn. This is a very well

  14. Ⅰt’s goling to Ƅᥱ еnd of mine daу, but
    before finish Ⅰ аm reading tɦis wonderful piece оf writing to improve
    mү experience.

  15. Hi colleagues, good article and fastidious urging commented at this place, I am genuinely enjoying by these.

  16. Thankѕ for fіnally talkіng about >Random unique аlphanumeric string – ѕhabeeb Blog <Loved it!

  17. buy 1 million backlinks

    February 23, 2017 at 7:40 am

    I want to to thank you for this excellent read!! I absolutely loved every bit of it. I’ve got you book marked to look at new things you post…

1 Pingback

  1. Pingback: My Homepage

Leave a Reply

Your email address will not be published.