I've been learning php in this online class but unfortunately I don't get much help if I don't understand something. We've been given this project to create a program that will translate a word into pig latin. It think I've gotten everything except I can't figure out how to shift the consonant at the beginning of the word to the end. Does anyone have any suggestions? Here is what I have so far.
* you haven't explained what's wrong with your code;
* what do you think "^h" does?
* are you aware that you will need to split at the starting consonant OR consonant cluster?
The first step in solving some problem is being able to do it on paper. So, please explain how your algorithm works exactly. Once you have that down, translate that into code.