Last active
October 26, 2020 18:51
-
-
Save ericstone57/699e7fd6a80268a753ca48ae32eeaef6 to your computer and use it in GitHub Desktop.
PHP simple random code generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// code length 5 characters | |
$code = substr(str_shuffle('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 1, 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment