Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect if mbstring is enabled or not from PHP script

Tags:

How can I check if the mbstring extension is loaded in a php script?

like image 521
Jayakrishnan Avatar asked Feb 14 '13 09:02

Jayakrishnan


People also ask

What is Mbstring PHP extension?

Mbstring is an extension of php used to manage non-ASCII strings. Mbstring is used to convert strings to different encodings. Multibyte character encoding schemes are used to express more than 256 characters in the regular byte wise coding system.


1 Answers

Use if (extension_loaded('mbstring')) { /* loaded */ }

See PHP manual.

like image 101
Frosty Z Avatar answered Oct 12 '22 18:10

Frosty Z