Generate random string in php

Generate random  string in php 


  $length_of_string = 23;
 $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
  $token = substr(str_shuffle($str_result), 0, $length_of_string);

No comments

Featured Post

Generate random string in php

Generate random  string in php    $length_of_string = 23;  $str_result = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstu...

Powered by Blogger.