Find position of first occurrence of string in a string
Usage
// basic usage
$bool = $wireTextTools->strpos(string $haystack, string $needle);
// usage with all arguments
$bool = $wireTextTools->strpos(string $haystack, string $needle, int $offset = 0);
Arguments
Name | Type(s) | Description |
---|---|---|
haystack | string | |
needle | string | |
offset (optional) | int |
Return value
bool
false
int
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236