str_shuffle

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

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

        $payload = str_shuffle($payload);

        $e->decrypt($payload);

    }
<?php     public static function random(int $length = 16): string

    {

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

    }
<?php     private function assertFieldRendersHtml($expectedHtmlParts, $fieldConfig, $oldData = [])

    {

        $randomString = str_shuffle('nobodymesseswiththehoff');



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