I have a sentence like this (in Hebrew,RTL):
ואמר was here אוראל
Now, when I insert this into array I got:
- array[0] = אוראל
- array[1] = was
- array[2] = here
- array[3] = :ואמר
Now, because Hebrew is a RTL language I need to reverse the english letters and I need to switch the positions. Notice that I need to take care of any sentence (which means I can have more than two english words).
How do I get the result to be like the following?
ואמר ereh saw אוראל
I thought maybe to build any time a new string with just the english words,Reverse it and build the original string again, or maybe use in ref strings...
thanks for your helping but i still got a problem! i had splited the sentence as you said,i reversed the array and i got this:
לארוא ereh saw רמאו
after the step 2 the postions of the hebrew words are worng! in step 3 i reversed the hebrew words again and i got:
אוראל ereh saw ואמר
and i need to switch their position(one in one, as i said i can have a sentence with a lot of words..) so, i didn't understand how i "put the array string back together"(step 5)