Answers for "generate 4 digit unique random alpha numaric in php"

PHP
8

how to create random alphanumeric in php

<?php 
// online code for creating alphanumeric in php 
// this will generate 6 charactor, you can create as many just change the 6 from code
$pass = substr(str_shuffle("0123456789abcdefghijklmnopqrstvwxyz"), 0, 6);
echo $pass;

//output : 17w2y8
?>
Posted by: Guest on July-02-2020
1

generate random number of 4 digit in php

<?php
$FourDigitRandomNumber = mt_rand(1111,9999);
echo $FourDigitRandomNumber;
?>
Posted by: Guest on October-16-2021

Code answers related to "generate 4 digit unique random alpha numaric in php"

Browse Popular Code Answers by Language