Anil Yadav

Wednesday, 16 July 2014

auto generate password in php

function randompassword( $length = 8 ) {
    $passchar = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?";
    $password = substr( str_shuffle( $passchar ), 0, $length );
    return $password;
}

$password = randompassword(8);
Posted by Anilmcmt at 02:54
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (1)
    • ►  February (1)
  • ►  2018 (8)
    • ►  July (1)
    • ►  March (1)
    • ►  January (6)
  • ►  2017 (13)
    • ►  September (3)
    • ►  August (3)
    • ►  July (4)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
  • ►  2016 (13)
    • ►  December (1)
    • ►  September (2)
    • ►  August (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (3)
  • ►  2015 (6)
    • ►  December (1)
    • ►  August (1)
    • ►  June (4)
  • ▼  2014 (14)
    • ►  December (1)
    • ►  November (2)
    • ►  October (3)
    • ►  September (1)
    • ▼  July (3)
      • auto generate password in php
      • file upload on click and get image
      • India State And City List In csv and xls File
    • ►  June (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2013 (21)
    • ►  December (2)
    • ►  September (4)
    • ►  August (3)
    • ►  July (1)
    • ►  May (2)
    • ►  April (3)
    • ►  March (6)

About Me

Anilmcmt
View my complete profile
Simple theme. Powered by Blogger.