Skip to content

shuffle

Randomly shuffle the characters of the string.

php
Twine\Str::shuffle( void ) : Twine\Str

Examples

php
$string = new Twine\Str('john pinkerton');

$string->shuffle(); // Returns something like 'nphjin erkotno'