• PHP Video Tutorials

PHP - Function Str Shuffle



Syntax

string str_shuffle ( string $str )

Definition and Usage

It is used to randomly shuffles a string

Return Values

It returns the shuffled string

Parameters

Sr.No Parameters & Description
1

string

It contains the information about input string

Example

Try out the following example

<?php
   $input = 'abcdefphp_function_str_shuffle';
   $shuffled = str_shuffle($input);
   
   echo $shuffled;
?>
felsdirnf_ecu_fhpnt_uafosbpcht
php_function_reference.htm
Advertisements