Created
March 6, 2022 07:16
-
-
Save karson/be26e3ff004c01cf2410ffbabc92d513 to your computer and use it in GitHub Desktop.
Revisions
-
karson created this gist
Mar 6, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ <?php //method1 $get_random_string = md5(microtime()); //method2 public static function get_quickRandom($length = 16) { $data_pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; return substr(str_shuffle(str_repeat($data_pool, $length)), 0, $length); }