You are here

public function StringWrapperInterface::substr in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-stdlib/src/StringWrapper/StringWrapperInterface.php \Zend\Stdlib\StringWrapper\StringWrapperInterface::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

2 calls to StringWrapperInterface::substr()
AbstractStringWrapper::strPad in vendor/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php
Pad a string to a certain length with another string
AbstractStringWrapper::wordWrap in vendor/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php
Wraps a string to a given number of characters
4 methods override StringWrapperInterface::substr()
Iconv::substr in vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php
Returns the portion of string specified by the start and length parameters
Intl::substr in vendor/zendframework/zend-stdlib/src/StringWrapper/Intl.php
Returns the portion of string specified by the start and length parameters
MbString::substr in vendor/zendframework/zend-stdlib/src/StringWrapper/MbString.php
Returns the portion of string specified by the start and length parameters
Native::substr in vendor/zendframework/zend-stdlib/src/StringWrapper/Native.php
Returns the portion of string specified by the start and length parameters

File

vendor/zendframework/zend-stdlib/src/StringWrapper/StringWrapperInterface.php, line 69

Class

StringWrapperInterface

Namespace

Zend\Stdlib\StringWrapper

Code

public function substr($str, $offset = 0, $length = null);