afam4eva Posted October 27, 2009 Share Posted October 27, 2009 Pls how can i generate a ticket code that combines both letters and numbers. Quote 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 Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.