Generate random string with given length, types of characters.
- Function generateString($length, $has_lower, $has_upper, $has_number, $has_special_character) with parameters: length - positive integer and 4 followed boolean data params. e.g: generateString("10",true, false, true, false) return a 10-character random string with lower characters, numbers, and special characters combined.