getPositionIgnoreCase
integer public static \Bitrix\Main\Text\BinaryString::getPositionIgnoreCase( $haystack, $needle, integer $offset );
Static method. Returns position, containing original search string, relative to haystack string start, independent from offset, case-insensitive. String position is counted from 0, not from 1. Returns false, when search string is not found. Executes safe operation in terms of multibyte character sets. Similar to PHP function strpos.
Parameters
Parameter | Description | Version |
---|---|---|
$haystack | Search string. | |
$needle | Original search string | |
$offset | When this parameter is specified, starts the search from the indicated number of characters from string start onwards. Cannot be negative. |
Example
© «Bitrix24», 2001-2024