PHP mt_getrandmax()

La fonction mt_getrandmax() est une fonction intégrée en PHP qui renvoie la plus grande valeur possible pouvant être retournée par mt_rand().
 

Syntaxe
mt_getrandmax()

 
 

Paramètres

La fonction ne reçoit aucun argument.
 

Valeur de retour

La fonction renvoie la plus grande valeur possible retournée par mt_rand().
 

Version PHP:

4+
 

Exemple :
<?php
    echo(mt_getrandmax());
?>

 
Sortie:

2147483647
Questions d'entretiens PHP

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *