/ Published in: PHP
Attempt to generate random numbers or random alphanumerics
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
//------------------------------------------------------------------------------------------ /* * Create numeric token */ private function createNumericToken($max_loop=210) { $token = null; for($i=0; $i < $max_loop; $i++) { } return $token; } //------------------------------------------------------------------------------------------ /* * Create alphanumeric token */ private function createAlphanumericToken($max_loop=5) { $token = null; for($i=0; $i < $max_loop; $i++) { } return $token; }