CODE
LIBARY.COM
Home
/
PHP
PHP Random number using microtime
Random number using microtime
<? $a = explode(" ",microtime()); echo substr(rand(1,$a[1]), 0, 8); ?>
$a = explode(" ",microtime()); echo substr(rand(1,$a[1]), 0, 8); ?>
Copy to Clipboard
Related Snippets
PHP Limit Excerpt Length in WordPress with the_excerpt_max_charlength Function
PHP ABSPATH PHP Code: Preventing Direct Access and Exiting
PHP Calendar
PHP Looging with sessions
PHP Generating random alphabetic string
PHP Mail Validation
PHP PHP getRequestJSON Function - Get Request Body as JSON Object
PHP Web-Based Random Post Generator
PHP Get Website Hostname
PHP Fibonacci Numbers