public indexOf ( string $string, string $search, integer $fromIndex = null ) : integer | ||
$string | string | The input string |
$search | string | The substring to search for |
$fromIndex | integer | The index where the search should start, defaults to the beginning |
Результат | integer | The index of the substring (>= 0) or -1 if the substring was not found |