欢迎您 本站地址:  
返回首页   返回编程教学   劝世贤文  恋爱宝典  网站打包生成app  整站系统源码  Discuz模板源码  常用浏览器UA  学习CSS  学习Python 

PHP getrandmax() 函数

PHP Math 参考手册 PHP Math 参考手册

实例

返回通过调用 rand() 函数显示的随机数的最大可能值:

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

运行实例 ?

定义和用法

The getrandmax() 函数返回通过调用 rand() 函数显示的随机数的最大可能值。


语法

getrandmax();

技术细节

返回值: 通过调用 rand() 函数显示的随机数的最大可能值。
返回类型: Integer
PHP 版本: 4+


PHP Math 参考手册 PHP Math 参考手册
小库提示

扫描下方二维码,访问手机版。