komatsu98/random-string

The package create random string created by Komatsu.

dev-master 2018-08-29 08:48 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:51:47 UTC


README

Generate random string with given length, types of characters.

Features

  • 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.