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

From: Date: Wed, 16 Jul 2008 19:43:18 +0000
Subject: #45531 [Ver]: description on rand() is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-958@lists.php.net to get a copy of this message
ID: 45531 User updated by: wayne at emaildienst dot de Reported By: wayne at emaildienst dot de Status: Verified Bug Type: Translation problem Operating System: none PHP Version: Irrelevant New Comment: hi, yes in the german documentation is the error. and yes the english version is correct. int rand ( int $min , int $max ) is the correct description. Previous Comments: ------------------------------------------------------------------------ [2008-07-16 17:41:04] tularis@php.net 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. ------------------------------------------------------------------------ [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 (#958) next »