Generating unique numbers using php


Posted on 16th Feb 2014 07:03 pm by admin

Hi,
I need help in generating unique number using php.I tired using rand() in php.But, by using rand() method,the generated values are repeating.I want unique numbers in my application.
Every time in loop,i need a unique number.
If anybody knows of generating unique numbers,pls reply AEAP.
Did you know?Explore Trending and Topic pages for more stories like this.


Thank u inadvance
No comments posted yet

Your Answer:

Login to answer
315 Like 38 Dislike
Previous forums Next forums
Other forums

Check something, wait, check again, do something!
Hi guys.

I wonder if someone can help me with this.

Basically, what I want to do is (

Need to write a cookie with a url var
Not sure if its possible, but I need to write a cookie with a url.

So this would write 2232 a

Simple PHP/Java Help..
Hi,
I'm trying to build a little program to do with calculating postage. Unfortunately i haven't

Checking if a process is running (problems including psapi.dll i think...)
Ok, so all I'm trying to do is check if a program is running...

I've found out that I nee

Taylor Series Function
So I am working a a project for my intro C++ class, and I am having some trouble with a function for

Running External Scripts
I am very new to PHP and am not even sure what I'm asking is possible. I have just installed mediaW

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

Multithreading design
Hi

I have come up with a Singleton class that manages a pool of database connections. Basical

mails going in spam??
The mails I sent to folks in my database using mail(function) are going in spam??

Any idea ho

Using Curl_multi for processing multiple URLs
Hi,

I am at a loss as to how to implement this. I would like to be able to automatically assi

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash