Created
May 6, 2018 12:16
-
-
Save celestora/116b57fb5238f5dc43d5cf55f79283af to your computer and use it in GitHub Desktop.
This file contains 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 characters
<?php | |
#Simple function for random string generation | |
function str_rand($length) { | |
$string = ''; | |
for ($i = 1; $i <= $length; $i++) { | |
$string .= chr(random_int(48, 122)); | |
} | |
return $string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment