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 Mail Validation
PHP Web Based Last Modified Date and Etag Checker
PHP Convert Snake Case to Camel Case with PHP | Laravel Inspired
PHP Chain of Command Design Pattern
PHP Get current filename as variable
PHP GD Text
PHP Check if Request is an Ajax Request
PHP HEX to RGBA Color Converter
PHP Miltidimension array example
PHP Generating html file