WireRandom::alpha()
Return string of random ASCII alphabetical letters
Available since version 3.0.111.
Usage
// basic usage
$string = $wireRandom->alpha();
// usage with all arguments
$string = $wireRandom->alpha(int $length = 0, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
$length (optional) | int | Required length of string or 0 for random length |
$options (optional) | array | See options for alphanumeric() method |
Return value
string
WireRandom methods and properties
API reference based on ProcessWire core version 3.0.251