Monday, July 28, 2008

How to get a random alpha numeric value php - uniqid()

If you want to get a random alpha numeric value (Numbers and letters) in php you can use uniqid() (Only works in php 5 or later)


<?php

$random = md5(uniqid());

echo $random;

?>





Get custom programming done at GetAFreelancer.com!

No comments:

Post a Comment