Using following code we can create random number. Than can be use Order number, unique id or like something that.
<?php //Unique or Random number Generate //$today = date("Ymd"); $today = date("dmY"); $random = strtoupper(substr(uniqid(sha1(time())),0,6)); echo $order_no = $today . $random; ?>
For more Interesting, Useful Article & codes visit IT New Code.
0 comments:
Post a Comment