# indexOf
Returns the index of the first occurrence of $needle in the string,
and false if not found. Accepts an optional offset from which to begin
the search.

## Description
`int|bool indexOf(string $needle, int $offset)`

### Parameters
* _string_ __$needle__  
Substring to look for.

* _int_ __$offset__  
Offset from which to search.


### Return Value
_int|bool_  
The occurrence's index if found,
otherwise false.