Detect if mbstring is enabled or not from PHP script

Jayakrishnan picture Jayakrishnan · Feb 14, 2013 · Viewed 36.9k times · Source

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

Answer

Frosty Z picture Frosty Z · Feb 14, 2013

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

See PHP manual.