The strrpos() function used for find the position of the last occurrence of a substring in a string.
Syntax
strrpos(string,find,start)
Example
echo strrpos('Hello dear, how are you','how');
Output
12
Copyright ©2022 coderraj.com. All Rights Reserved.