Returns the largest possible value of the random number displayed by calling the rand() function:
<?phpecho(getrandmax()); ?>The getrandmax() function returns the maximum possible value of the random number displayed by calling the rand() function.
getrandmax();
Return value: | The maximum possible value of the random number displayed by calling the rand() function. |
---|---|
Return type: | Integer |
PHP version: | 4+ |