You can use session id to geenrate random string
<?php session_start(); echo session_id(); ?>
Do you mean how to pick a random string out of a predetermined set? … put them in an array and use the array_rand() function:
<?php
$myStrings = array("Neo", "Morpheus", "Trinity"); echo $myStrings[array_rand($myStrings, 1)];
?>References :
<?php session_start(); echo session_id(); ?>References :
Name (required)
Mail (will not be published) (required)
Website
Submit Comment
Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page.
Contact Us | Terms of Use | Trademarks | Privacy StatementCopyright © 2009 Famous Internet Programmer. All Rights Reserved.
Powered by WordPress and WordPress Theme created with Artisteer.
Do you mean how to pick a random string out of a predetermined set?
… put them in an array and use the array_rand() function:
<?php
$myStrings = array("Neo", "Morpheus", "Trinity");
echo $myStrings[array_rand($myStrings, 1)];
?>
References :
You can use session id to geenrate random string
<?php
session_start();
echo session_id();
?>
References :