PHP getrandmax

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PHP : getrandmax() function

Description

The getrandmax() function is used to get the largest possible random value.

Version

(PHP 4 and above)

Syntax

getrandmax()

Return value

The largest possible random value returned by rand().

Value Type : Integer.

Example :

  1. echo(getrandmax());  

  2. ?>   

Output of the example

2147483647