Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Generate Random String in PHP

phpCopy<?php
 
echo "Out1: ",substr(md5(time()), 0, 16),"
";
 
echo "Out2: ",substr(sha1(time()), 0, 16),"
";
 
echo "Out3: ",md5(time()),"
";
 
echo "Out4: ",sha1(time()),"
";
 
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Generate #Random #String #PHP
ADD COMMENT
Topic
Name
2+6 =