You are here

public static function StringUtils::registerWrapper in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/StringUtils.php \Zend\Stdlib\StringUtils::registerWrapper()

Register a string wrapper class

Parameters

string $wrapper:

Return value

void

File

vendor/zendframework/zend-stdlib/src/StringUtils.php, line 84

Class

StringUtils
Utility class for handling strings of different character encodings using available PHP extensions.

Namespace

Zend\Stdlib

Code

public static function registerWrapper($wrapper) {
  $wrapper = (string) $wrapper;
  if (!in_array($wrapper, static::$wrapperRegistry, true)) {
    static::$wrapperRegistry[] = $wrapper;
  }
}