PHP Hangman应用程序从右到左
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:
A -> AB and I need it to be A -> BA
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: http://pastebin.com/tmaUFLGi
I've tried using strrev, no success there.
Thanks for any help given
当你猜希伯来语时,我需要写刽子手游戏。 所有工作正常,但当我' 猜测这个词。 第一个字母是正确的,但是第二个字母不在它的左边,而是在它的右边,例如: p>
A - > AB and我需要它是 A - > BA p>
代码很长,因为我不允许使用任何循环(我知道它是愚蠢的)。 这是一个指向应用程序主页的链接: http://pastebin.com/tmaUFLGi p>
我尝试过使用strrev,没有成功 那里。 p>
感谢您给予的任何帮助 p> div>
How about using html5 to render it from right to left? While you can juggle with your variables without having to transform them. What if you need to show the application in English? You just use some css, simple as that.