Showing posts with label PHP str_shuffle. Show all posts
Showing posts with label PHP str_shuffle. Show all posts

Monday, 29 September 2014

str_shuffle in PHP

PHP str_shuffle() function randomly shuffles a string.

Syntax:

str_shuffle(string)
string : Required. Specifies the input string.

Example:

<?php
echo str_shuffle("Good Morning");
?>
Output will be:
nGog dnoiroM