You are here

public function AbstractStringWrapper::getEncoding in Zircon Profile 8

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

Get the defined character encoding to work with

Return value

string

Throws

Exception\LogicException If no encoding was defined

Overrides StringWrapperInterface::getEncoding

11 calls to AbstractStringWrapper::getEncoding()
AbstractStringWrapper::convert in vendor/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php
Convert a string from defined character encoding to the defined convert encoding
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
Iconv::convert in vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php
Convert a string from defined encoding to the defined convert encoding
Iconv::strlen in vendor/zendframework/zend-stdlib/src/StringWrapper/Iconv.php
Returns the length of the given string

... See full list

File

vendor/zendframework/zend-stdlib/src/StringWrapper/AbstractStringWrapper.php, line 93

Class

AbstractStringWrapper

Namespace

Zend\Stdlib\StringWrapper

Code

public function getEncoding() {
  return $this->encoding;
}