Re: [PHP] How to detect languages from (=> LTR vs RTL)

2012-02-07 Thread Dotan Cohen
On Tue, Feb 7, 2012 at 19:31, Dotan Cohen wrote: > function is_strong($char) { >    if (  in_array($char, $arrayOfRtlCharacters)  ) { >        return "RTL"; >    } >    if (  in_array($char, $arrayOfLtrCharacters)  ) { >        return "LTR"; >    } >    return FALSE; > } > On second thought, you

Re: [PHP] How to detect languages from (=> LTR vs RTL)

2012-02-07 Thread Dotan Cohen
On Tue, Feb 7, 2012 at 10:37, Michelle Konzack wrote: > Hi colleges and gurus, > > I coding a whole "web office" and one of my problems is "LTR vs RTL". > If I have for exanple an E-Mail I use a > >     >      $SOME_TEXT >     > > but HOW can I detect the type of $SOME_TEXT  from  within  PHP,  to

Re: [PHP] How to detect languages from (=> LTR vs RTL)

2012-02-07 Thread Ashley Sheridan
On Tue, 2012-02-07 at 09:37 +0100, Michelle Konzack wrote: > Hi colleges and gurus, > > I coding a whole "web office" and one of my problems is "LTR vs RTL". > If I have for exanple an E-Mail I use a > > > $SOME_TEXT > > > but HOW can I detect the type of $SOME_TEXT from withi