(PHP 4 >= 4.0.4 and PHP 4 <= 4.1.0, PECL fribidi >= 1.0)
fribidi_log2vis — Convert a logical string to a visual one
$str
   , string $direction
   , int $charset
   )Converts a logical string to a visual one.
strThe logical string.
direction
       One of  FRIBIDI_RTL, 
       FRIBIDI_LTR or FRIBIDI_AUTO.
      
charsetOne of the FRIBIDI_CHARSET_XXX constants.
   Returns the visual string on success or FALSE on failure.