Created
January 6, 2019 14:45
-
-
Save amirkhiz/adacba2c5c496538a4995667d9f793de to your computer and use it in GitHub Desktop.
Generate Unique ID
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
function generateUniqueId() | |
{ | |
mt_srand(); | |
$order_no = substr(md5(uniqid(mt_rand())), 0, 8); | |
return $order_no; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment