Fix PHP 7.4 "Deprecated: Array and string offset access syntax with curly braces is deprecated"
This commit is contained in:
parent
7ae53cfd63
commit
bbdc8afcaf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user