Generating an ID with microtime() : explode « Data Structure « PHP
- PHP
- Data Structure
- explode
Generating an ID with microtime()
<?php
list($microseconds,$seconds) = explode(' ',microtime());
$id = $seconds.$microseconds.getmypid();
?>
Related examples in the same category