public function generate_token($len=32) { return substr(str_shuffle("0123456789" ."abcdefghijklmnopqrstuvwxyz" ."ABCDEFGHIJKLMNOPQRSTUVWXYZ" ."0123456789" ."abcdefghijklmnopqrstuvwxyz" ."ABCDEFGHIJKLMNOPQRSTUVWXYZ" ), 0, $len); }
public function generate_token($len=32) { return substr(str_shuffle("0123456789" ."abcdefghijklmnopqrstuvwxyz" ."ABCDEFGHIJKLMNOPQRSTUVWXYZ" ."0123456789" ."abcdefghijklmnopqrstuvwxyz" ."ABCDEFGHIJKLMNOPQRSTUVWXYZ" ), 0, $len); }