#45531 [Opn->Ver]: description on rand() is wrong

From: Date: Wed, 16 Jul 2008 17:41:04 +0000
Subject: #45531 [Opn->Ver]: description on rand() is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-956@lists.php.net to get a copy of this message
ID: 45531 Updated by: tularis@php.net Reported By: wayne at emaildienst dot de -Status: Open +Status: Verified -Bug Type: Documentation problem +Bug Type: Translation problem Operating System: none PHP Version: Irrelevant New Comment: It looks correct to me in the english version of the manual; where are you seeing it like that? I can see it in the German translation, so I'll change the category to translation problem. Previous Comments: ------------------------------------------------------------------------ [2008-07-16 16:56:32] wayne at emaildienst dot de Description: ------------ hi, following description is wrong: int rand ([ int $min ], int $max ) it should be: int rand ([[int $min], int $max]) because all parameters are optional. if there is only one given parameter, the function gets it as $max. if there are two parameters given, the function gets the first as $min and the second as $max. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45531&edit=1

« previous php.doc.bugs (#956) next »