Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Add shuffle formatter #452

Merged
merged 2 commits into from
Nov 4, 2014
Merged

Add shuffle formatter #452

merged 2 commits into from
Nov 4, 2014

Conversation

fzaninotto
Copy link
Owner

Works for both arrays and strings (including utf-8):

echo $faker->shuffle('hello, world'); // 'rlo,h eoldlw'
echo $faker->shuffle(array(1, 2, 3)); // array(2, 1, 3)

@fzaninotto fzaninotto mentioned this pull request Nov 4, 2014
fzaninotto added a commit that referenced this pull request Nov 4, 2014
@fzaninotto fzaninotto merged commit a845fa3 into master Nov 4, 2014
@fzaninotto fzaninotto deleted the shuffle branch November 4, 2014 21:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant