Random string are often used in web application to assign records a unique random key. Here is very useful random string generator function that allows you generate random string of any length. Just call the function and pass a length. If you omit length parameter it will generate a 10 characters long alphanumeric string. function generate_string($length=10){ $chars = array_merge(range(0, 9), range('A', 'Z'), range('A', 'Z')); shuffle($chars); $string = implode(array_slice($chars, 0, $length)); return $string; }
Engineering
Random string generator
Random string are often used in web application to assign records a unique random key. Here is very useful random string generator function that allows you gene
· 5 min read
Related posts
Engineering
My 3 days trip to Swat, Malam Jabba and Kalam (20th Mar to 23rd Mar)
Pakistan is a land of natural beauty and has been blessed with the abundance of awe-inspiring outdoor areas. From the unspoiled golden beaches,across the desola
Engineering
Lamudi.pk is The Fastest growing real estate startup in Pakistan
There are several online real estate portals running in Pakistan, a couple of them have captured the market and leading the industry. In such a scenario it’s ha
Engineering
Trigger Google conversion on some event
Normally Google conversion code is added in header or footer of the “Thank you for your purchase” pages. A conversion is logged when someone lands o