Re: VB to PHP

From: Date: Tue, 31 Oct 2000 12:31:02 +0000
Subject: Re: VB to PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-22927@lists.php.net to get a copy of this message
I take it your trying to generate a random number. If so use - md5(uniqid("Some random text here")); Then convert it to numbers. Hope this helps Andy M.D. www.databasewatch.com ----- Original Message ----- From: "Kasper (swebase network)" <kasper@swebase.com> To: <php-general@lists.php.net> Sent: Tuesday, October 31, 2000 11:48 AM Subject: [PHP] VB to PHP Is here anyone who can translate this string from VB to PHP Randomize sProdId = Format$(Now, "########") + "-" + Trim(Str(Int((100000000000# - 100000 + 1) * Rnd + 10000))) Thanks Med Vänlig Hälsning, Kasper Kristiansson Swebase Network Karbingatan 12 254 67 Helsingborg Tel: 042-162000 Fax: 042-162009

« previous php.general (#22927) next »