Find the position of the first occurrence of a case-insensitive substring in a string
Usage
// basic usage
$bool = $wireTextTools->stripos(string $haystack, string $needle);
// usage with all arguments
$bool = $wireTextTools->stripos(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