Archive for April 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())); 
Wednesday, April 3, 2013
Posted by Anjana Jayaweera

Popular Post

Blogger templates

Labels

- Copyright © My Code Genius by 2 Geniuses -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -