Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Create string with random characters

  1. #11
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    13
    Thanked 4 Times in 4 Posts

    Default

    What about uniqid()?

    Something you can try:

    PHP Code:
    $code md5(uniqid(rand(), true)); 

  2. #12
    Join Date
    Jul 2008
    Posts
    199
    Thanks
    6
    Thanked 58 Times in 57 Posts

    Default

    @Crazy

    That is a good idea, since it's alphanumeric, but if you ever wanted to expand the function to include other characters it would be more work.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •