Created
September 8, 2015 20:46
-
-
Save cryptixcoder/4428af58e1c2b2d1d58c to your computer and use it in GitHub Desktop.
Generate Order Number
This file contains hidden or 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 | |
function gen_order_num(){ | |
return substr(md5(microtime()), rand(0,26),3).time(); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment