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 .htpasswd Password Generation
PHP Displaying the Number of Posts in an Archive Page with PHP
PHP Remove line from file
PHP Registering REST Images in WordPress with PHP
PHP Apache Headers Request
PHP PHP Functions for WordPress Page Content and Information Retrieval
PHP Even or Odd numbers
PHP Image Size and Attributes - PHP getimagesize Function
PHP Files sorting by size
PHP Random password using md5() and time()