You are here

public function MbString::strpos in Zircon Profile 8.0

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

Find the position of the first occurrence of a substring in a string

Parameters

string $haystack:

string $needle:

int $offset:

Return value

int|false

Overrides StringWrapperInterface::strpos

File

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

Class

MbString

Namespace

Zend\Stdlib\StringWrapper

Code

public function strpos($haystack, $needle, $offset = 0) {
  return mb_strpos($haystack, $needle, $offset, $this
    ->getEncoding());
}