php Programming Glossary: srand
Sort array by object property in PHP? http://stackoverflow.com/questions/1462503/sort-array-by-object-property-in-php this age age test internal usort on 15000 Person objects srand 1 people array for x 0 x 15000 x people new Person rand 1 100.. took total n test custom quicksort on 15000 Person objects srand 1 people array for x 0 x 15000 x people new Person rand 1 100.. 03d age public function __toString return this sortable srand 1 people array for x 0 x size x people new Person rand 1 100..
How to save encrypted data in cookie (using php)? http://stackoverflow.com/questions/173727/how-to-save-encrypted-data-in-cookie-using-php String to be encrypted @return void function encrypt src srand double microtime 1000000 for sake of MCRYPT_RAND this iv mcrypt_create_iv..
Random ID/Number Generator in PHP http://stackoverflow.com/questions/3347521/random-id-number-generator-in-php and 3 above. My code is below. function createRandomAGTNO srand double microtime 1000000 random_agtno rand 100000000 900000000..
CakePHP Cookies getting scrambled - Suhosin related http://stackoverflow.com/questions/4724289/cakephp-cookies-getting-scrambled-suhosin-related the Suhosin security patch for PHP effecting the rand and srand methods I had configured Suhosin to allow the rand functions..
How random is PHP's shuffle function? http://stackoverflow.com/questions/5694319/how-random-is-phps-shuffle-function random generator is seeded automatically but you can use srand function to seed it if you want. mtrand is based on Mersenne..
forget password page, creating a generated password to email to the user. http://stackoverflow.com/questions/8283653/forget-password-page-creating-a-generated-password-to-email-to-the-user chars abcdefghijkmnopqrstuvwxyz023456789 srand double microtime 1000000 i 0 pass '' while i 7 num rand 33 tmp..
|