str_shuffle() function is used to shuffles all the characters of a string randomly. It is an inbuilt function of PHP.
$string is a PHP String.
<?php $str="Welcome to Coding Tag"; $new_str=str_shuffle($str); echo "Old string is : <strong>$str</strong><br>"; echo "Shuffled string is : <strong>$new_str</strong>"; ?>
You May Also Like
Subscribe To Never Miss an Article From