You are here

public function MbString::substr 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::substr()

Returns the portion of string specified by the start and length parameters

Parameters

string $str:

int $offset:

int|null $length:

Return value

string|false

Overrides StringWrapperInterface::substr

File

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

Class

MbString

Namespace

Zend\Stdlib\StringWrapper

Code

public function substr($str, $offset = 0, $length = null) {
  return mb_substr($str, $offset, $length, $this
    ->getEncoding());
}