Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Generate Random String in PHP

phpCopy<?php
 
echo "Output-1: ",bin2hex(random_bytes(10)),"
";
 
echo "Output-2: ",bin2hex(random_bytes(20)),"
";
 
echo "Output-3: ",bin2hex(random_bytes(24)),"
";
 
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #Generate #Random #String #PHP
ADD COMMENT
Topic
Name
6+4 =