PHP Challenge 5 - Rearranging Letters into Alphabetical Order

This should be a fairly simple task to complete.

Allow the user to enter a word via a form.

Take the letters from the word and rearrange each letter into alphabetical order.

e.g. If the user enters the word BANANAS then the returned string would be AAABNNS

Would you like the solution to this challenge?

The full video solution together with downloadable code is available in the PHP for Beginners course.

This course is taught by Patrick Morrow, a national award-winning teacher, who is very active in the course and who provides full support.

To enrol in the course click here.


Your email address will not be published.

PHP for Beginners

Would you like lifetime access to the hugely successful PHP for Beginners course? Click here to find out how.

FREE Code Snippets

FREE hints and tips delivered direct to you once per month.