Creating a unique number

Easiest way to generate a unique number is by combining all the date and time.

The code is as follow

$unique = date(“YmdHis”); //will generate yyyymmddhhmmss

Leave a Reply

Your email address will not be published. Required fields are marked *