tag:blogger.com,1999:blog-1047568970673962377.post2927504095935820717..comments2023-10-22T20:55:07.650+05:30Comments on Techie Anish's Blog: PHP Code Snippets: Generate a random stringAnishMhttp://www.blogger.com/profile/04539348410767252866noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1047568970673962377.post-26122038526988175462018-12-14T12:48:19.572+05:302018-12-14T12:48:19.572+05:30Great Way, I also wrote a post about it, Have a Lo...Great Way, I also wrote a post about it, Have a Look for more methods !!<br /><a href="http://pujann.com.np/php-random-string.php" rel="nofollow">Generate Random String in PHP</a> The Authorhttps://www.blogger.com/profile/02419039009215236229noreply@blogger.comtag:blogger.com,1999:blog-1047568970673962377.post-60630432295801501162013-07-07T05:12:56.615+05:302013-07-07T05:12:56.615+05:30I have an alternative for you:
function generates...I have an alternative for you:<br /><br />function generatestring( $length ) {<br /> $charset = 'abcdefg...'; // same as yours<br /> return( substr( str_shuffle( $charset ), 0, $length) );<br />}Eeyorehttps://www.blogger.com/profile/10823663443105960854noreply@blogger.com