XXXIX. FriBiDi Functions


FriBiDi is a free implementation of the Unicode Bidirectional Algorithm.


You must download and install the FriBiDi package.


PECL 扩展未绑定于 PHP 中。 进一步信息例如新版本,下载,源程序,维护者信息以及更新日志可以在此找到:

In order to use these functions you must compile PHP with Fribidi support by using the --with-fribidi[=DIR] configure option.

Windows users will enable php_fribidi.dll inside of php.ini in order to use these functions. 可以从 PHP 下载页面或者 下载此 PECL 扩展的 DLL 文件。


以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。


FRIBIDI_CHARSET_8859_6 (integer)

FRIBIDI_CHARSET_8859_8 (integer)

FRIBIDI_CHARSET_CP1255 (integer)

FRIBIDI_CHARSET_CP1256 (integer)


fribidi_log2vis -- Convert a logical string to a visual one

add a note add a note User Contributed Notes
webKami [at]
01-Apr-2005 04:58
To kill the curosity right here....

"Bidirectional" here means the merging of langauages that read from Left to Right (English, French, Spanish etc) with some Native languages that are read from Right to Left, (Arabic, Farsi, Urdu etc).

Problem arises where L2R sub-strings are inserted in R2L string or vice versa.

Like an arabic sub-string in an enlish text. Suppose the lower case is english and upper case in urdu, a bidirectional string may look like.

i drive my CAR daily

but it should not look like this, as CAR should be from L2R in display and in selection.

i drive my RAC daily

If you have read this far I am sure this is the topic you are looking for.
Continue your reading here
iaxhaquer at SPAMhotmail dot com
01-Oct-2002 11:56
In case anyone is curious,
Fribidi is "A Free Implementation of the Unicode Bidirectional Algorithm" information on this can be found here: