str_shuffle

Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Randomly shuffles a string
str_shuffle(string $string): string
        $e = new Encrypter(str_repeat('a'16));

        
$payload $e->encrypt('foo');

        
$payload str_shuffle($payload);

        
$e->decrypt($payload);

    }
    public static function random(int $length 16): string

    
{

        return 
substr(str_shuffle(str_repeat(self::POOL5)), 0$length);

    }
    private function assertFieldRendersHtml($expectedHtmlParts$fieldConfig$oldData = [])

    {

        
$randomString str_shuffle('nobodymesseswiththehoff');



        
$this->customFieldBlueprintHandle $handle $fieldConfig['handle'].'_'.$randomString;