You are here

public function MbString::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/StringWrapper/MbString.php \Zend\Stdlib\StringWrapper\MbString::__construct()

Constructor

Throws

Exception\ExtensionNotLoadedException

File

vendor/zendframework/zend-stdlib/src/StringWrapper/MbString.php, line 49

Class

MbString

Namespace

Zend\Stdlib\StringWrapper

Code

public function __construct() {
  if (!extension_loaded('mbstring')) {
    throw new Exception\ExtensionNotLoadedException('PHP extension "mbstring" is required for this wrapper');
  }
}