Difference between revisions of "PHP Function Reference"

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search
(Created page with "== Multibyte Support == Multibyte support "mbstring" is a Human Language and Character Encoding function for PHP which enables HTTP input character encoding conversion. mbst...")
(No difference)

Revision as of 13:13, 29 January 2014

Multibyte Support

Multibyte support "mbstring" is a Human Language and Character Encoding function for PHP which enables HTTP input character encoding conversion.

mbstring support is not enabled by default in PHP. If you are not sure if mbstring support is enabled, check the phpinfo page

 <?php phpinfo(); ?>

if there is no section on the output of phpinfo labeled "mbstring" with the text "Multibyte Support" set to "enabled" then you do not have mbstring installed.

Use the extension_loaded class:

 extension_loaded('mbstring');

You must explicitly enable the module with the "configure" option after it has been installed.

To install mbstring on Red Hat Linux-based distributions

 yum install php-mbstring 
 httpd -k restart

this includes RHEL, Fedora, CentOS, Mandriva, and Intrinsic Linux.