php str_shuffle() function
Translation results:
英[ˈʃʌfl] 美[ˈʃʌfəl]
vt.Shuffle; shuffle; move; put aside, put aside
vi.shirk; shuffle; jump shuffle Dance; move
n.Shuffle, chaos, confusion; dragging feet
Third person singular: shuffles Plural: shuffles Present participle: shuffling Past tense: shuffled Past participle: shuffled
php str_shuffle() functionsyntax
How to use the str_shuffle() function?
php The str_shuffle() function is used to randomly shuffle all the characters in the string. The syntax is str_shuffle(string) and returns the shuffled string.
Function: Randomly shuffle all characters in the string
Syntax: str_shuffle(string)
Parameters:
Parameter | Description |
string | Required, specified The string to be scrambled |
Instructions: Return the scrambled string
php str_shuffle() functionexample
<?php $i = "hello world"; $j = str_shuffle($i); echo $j; ?>
Run instance»
Click the "Run instance" button to view the online instance
Output:
lhl drelow
<?php $i = "php.cn is a good place for study php"; $j = str_shuffle($i); echo $j; ?>
Run Instance»
Click the "Run Instance" button to view the online instance
Output:
ohd p odu cei ssr cgafypo tapphp .nl