Find the first occurrence of a string and return the rest of the string including the search string.
Arguments
Argument | Description |
---|---|
1 | The string to search for. |
2 | By default everything after the string (including the needle is returned. If this option is set to true, this method will return the part of the haystack before the first occurrence of the needle (excluding the needle). |