curly braces to pick a character in string is not recommended
This commit is contained in:
		@@ -1534,7 +1534,7 @@ function common_random_hexstr($bytes)
 | 
			
		||||
 | 
			
		||||
    $hexstr = '';
 | 
			
		||||
    for ($i = 0; $i < $bytes; $i++) {
 | 
			
		||||
        $hexstr .= sprintf("%02x", ord($str{$i}));
 | 
			
		||||
        $hexstr .= sprintf("%02x", ord($str[$i]));
 | 
			
		||||
    }
 | 
			
		||||
    return $hexstr;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user