Documentation

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

ParameterDescriptionVersion
$haystackSearch string.
$needleOriginal search string
$offsetWhen this parameter is specified, starts the search from the indicated number of characters from string start onwards. Cannot be negative.

Example



© «Bitrix24», 2001-2022
Up