about 8 years ago
Hello Friends,
If you are looking to generate unique random string of numeric numbers. Please follow the below code for the same.
<?php $uniqueKey = generateUniqueKey(); /** * generate unique key * @return unique key */ public function generateUniqueKey() { $characters = '0123456789'; //basic key data $charactersLength = strlen($characters); $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength - 1)]; } return $randomString; } ?>
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)