WireTextTools::strrpos()

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

Usage

// basic usage
$bool = $wireTextTools->strrpos(string $haystack, string $needle);

// usage with all arguments
$bool = $wireTextTools->strrpos(string $haystack, string $needle, int $offset = 0);

Arguments

NameType(s)Description
$haystackstring
$needlestring
$offset (optional)int

Return value

bool false int


WireTextTools methods and properties

API reference based on ProcessWire core version 3.0.251