PHP Order Number Creation

 

This script will automatically calculate an order number. Try it! Refresh the page!

 

Example

1555842152-

 

Script Source

<?php
$stamp = strtotime ("now");
$orderid = "$stamp-$REMOTE_ADDR";
$orderid = str_replace(".", "", "$orderid");
echo($orderid);
?>

 

Please let me know if this script was helpful to you.

[rating]