public static function StringUtils::getRegisteredWrappers in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-stdlib/src/StringUtils.php \Zend\Stdlib\StringUtils::getRegisteredWrappers()
Get registered wrapper classes
Return value
string[]
1 call to StringUtils::getRegisteredWrappers()
- StringUtils::getWrapper in vendor/
zendframework/ zend-stdlib/ src/ StringUtils.php - Get the first string wrapper supporting the given character encoding and supports to convert into the given convert encoding.
File
- vendor/
zendframework/ zend-stdlib/ src/ StringUtils.php, line 55
Class
- StringUtils
- Utility class for handling strings of different character encodings using available PHP extensions.
Namespace
Zend\StdlibCode
public static function getRegisteredWrappers() {
if (static::$wrapperRegistry === null) {
static::$wrapperRegistry = [];
if (extension_loaded('intl')) {
static::$wrapperRegistry[] = 'Zend\\Stdlib\\StringWrapper\\Intl';
}
if (extension_loaded('mbstring')) {
static::$wrapperRegistry[] = 'Zend\\Stdlib\\StringWrapper\\MbString';
}
if (extension_loaded('iconv')) {
static::$wrapperRegistry[] = 'Zend\\Stdlib\\StringWrapper\\Iconv';
}
static::$wrapperRegistry[] = 'Zend\\Stdlib\\StringWrapper\\Native';
}
return static::$wrapperRegistry;
}