The stristr() function (case-insensitive) used for find first occurrence of a string inside another string.
Syntax
stristr(string,search,before_search);
Example
echo stristr("Hello Dear","Dear",true);
Output
Hello
Copyright ©2022 coderraj.com. All Rights Reserved.