You are here

public function MbString::strlen in Zircon Profile 8

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

Returns the length of the given string

Parameters

string $str:

Return value

int|false

Overrides StringWrapperInterface::strlen

File

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

Class

MbString

Namespace

Zend\Stdlib\StringWrapper

Code

public function strlen($str) {
  return mb_strlen($str, $this
    ->getEncoding());
}