Fix PHP 7.4 "Deprecated: Array and string offset access syntax with curly braces is deprecated"

This commit is contained in:
Anaggh S 2020-02-27 03:08:27 +05:30
parent 7ae53cfd63
commit bbdc8afcaf
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ class Text {
$characteres = "1234567890abcdefghijklmnopqrstuvwxyz!@#%^&*";
$text = '';
for($i=0; $i<$length; $i++) {
$text .= $characteres{rand(0,41)};
$text .= $characteres[rand(0,41)];
}
return $text;
}