Articles Posted in the " Php Password " Category

  • Password Validation in php

    Password Validation in php

    <?php if (!preg_match('~^[a-z0-9]*[0-9][a-z0-9]*$~i',$password)) { // $subject is alphanumeric and contains at least 1 number $passworderror="Please enter password with digits"; } ?>


  • PHP RANDOM PASSWORD

    PHP RANDOM PASSWORD

    <?php $length = 10; $chars = array_merge(range(0,9), range('a','z'), range('A','Z')); shuffle($chars); $password = implode(array_slice($chars, 0, $length)); echo $password; ?>


  • Password Generator In PHP

    Password Generator In PHP

    Password Generator In PHP. We can generate dynamic password with numeric, alphanumer etc using php. I created dynamic_password function. It will generate and return the dynamic password. You should have to send password type, […]