PHP Hangman application Right to Left
<p>I need to write hangman game, when you guess letters, in Hebrew.
All is working fine but when I'm guessing the word.
Means first letter is Right but second letter appears not to the left of it but to the right of it, Example:</p>

<p>A ->  AB
and I need it to be
A ->  BA</p>

<p>code is very long since I'm not allowed to use any loops (I know it's stupid).
Here is a link to the main page of the application: <a href="http://pastebin.com/tmaUFLGi" rel="nofollow">http://pastebin.com/tmaUFLGi</a></p>

<p>I've tried using strrev, no success there.</p>

<p>Thanks for any help given</p>
