jeudi 21 octobre 2021

random string with numbers and letters

I saw a code in a website that creates random string. I want to know what does number 17 do in this code? The code is below

<?php
echo substr(sha1(mt_rand()),17,6); //To Generate Random Numbers with Letters.
?>



Aucun commentaire:

Enregistrer un commentaire