Universeorange.com/Docs/

R3m/framework Function reference string.occurrence

{string.occurrence(String $haystack, String $needle, Boolean $before_needle=false)}

Find the first occurrence of a string.

Returns part of haystack string starting from and including the first occurrence of needle to the end of haystack.

Note:

This function is case-sensitive. 
For case-insensitive searches, use string.occurrence.case.insensitive.

Note:

If you only want to determine if a particular needle occurs within haystack, use the faster and less memory intensive function {string.position.first.occurrence()} instead.

Returns the portion of string, or false if needle is not found.

More information:

https://www.php.net/manual/en/function.strstr.php

Last modified: 2021-06-07

© 2021 universeorange.com