afam4eva Posted October 27, 2009 Share Posted October 27, 2009 Pls how can i generate a ticket code that combines both letters and numbers. Link to comment https://forums.phpfreaks.com/topic/179225-how-to-generate-ticketspls-help/ Share on other sites More sharing options...
mikesta707 Posted October 27, 2009 Share Posted October 27, 2009 you can hash a string with one of PHP's hashing functions. for example $string = "I am a string"; print md5($string); output: 1710528bf976601a5d203cbc289e1a76 you can use any string really Link to comment https://forums.phpfreaks.com/topic/179225-how-to-generate-ticketspls-help/#findComment-945583 Share on other sites More sharing options...
knsito Posted October 27, 2009 Share Posted October 27, 2009 try http://us2.php.net/manual/en/function.uniqid.php Link to comment https://forums.phpfreaks.com/topic/179225-how-to-generate-ticketspls-help/#findComment-945650 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.