3

I'm looking for a function to change the characters order in a string.

For example, I have this string : "How are you?" , calling the function with this string as parameter would return something like: "wuayero Ho?" or something similar.

Zoltan Toth
47.8k12 gold badges132 silver badges138 bronze badges
asked Aug 27, 2012 at 22:34

1 Answer 1

8

PHP has a handy str_shuffle function for that

answered Aug 27, 2012 at 22:36
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.