Wednesday, April 3, 2013

How to create a unique string in PHP (Simple Way)

$string = md5(time()); 


Instead of md5, you can use SHA1 or any other encryption method in PHP OR a mix of them.

Eg :

$string = sha1(md5(time())); 

No comments:

Post a Comment