X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

PHP str_shuffle() Function

PHP String Reference PHP String Reference

Example

Randomly shuffle all characters of a string:

<?php
echo str_shuffle("Hello World");
?>

Run example »

Definition and Usage

The str_shuffle() function randomly shuffles all the characters of a string.


Syntax

str_shuffle(string)

Parameter Description
string Required. Specifies the string to shuffle

Technical Details

Return Value: Returns the shuffled string
PHP Version: 4.3.0+


PHP String Reference PHP String Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook