To shuffle a string in PHP, we can convert the string to an array, use the shuffle()
function to shuffle the array, and then convert the array back to a string using the implode()
function:
main.php242 chars6 lines
Output: oHrdell wlo!
gistlibby LogSnag