RE: [PHP] Using rand() for 10 digit numbers????

From: Date: Fri, 05 Sep 2003 17:25:36 +0000
Subject: RE: [PHP] Using rand() for 10 digit numbers????
Groups: php.general 
Request: Send a blank email to php-general+get-161797@lists.php.net to get a copy of this message
[snip] What PHP version do you use? I only have version 4.3.1 on the machine. [/snip] Did this on a 4.2.1 and a 4.3...no probs. Have you tried the code I posted on your machine? <?php $i=25; while($i > 0){ $random=rand (0,99999999999999999); echo number_format($random, 0, '', ',')."\n"; $i--; } ?>

« previous php.general (#161797) next »