Return largest possible random value that can be returned by rand() in PHP

Description

The following code shows how to return largest possible random value that can be returned by rand().

Example


<?php
    echo(getrandmax()); 
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Development »




Environment
Error
Hash
Include
Locale
Math
Network
Output
Reflection
PHP Regular Expressions