Documentation

Random
in package

Pure-PHP Random Number Generator

Tags
author

Jim Wigginton terrafrost@php.net

access

public

Table of Contents

string()  : string
Generate a random string.

Methods

string()

Generate a random string.

public static string(int $length) : string

Although microoptimizations are generally discouraged as they impair readability this function is ripe with microoptimizations because this function has the potential of being called a huge number of times. eg. for RSA key generation.

Parameters
$length : int
Return values
string

Search results