Home >> PHP >> strrchr() function in PHP

strrchr() function in PHP

The strrchr() function used for find last occurrence of a string inside another string.

Syntax

strrchr(string,find);

Example

echo strrchr("Hello Dear","Dear");

Output

Dear

Post Your Comment

Next Questions
strrev() function
strripos() function
strrpos() function
strspn() function
strstr() function
strtok() function
strtolower() function
strtoupper() function
strtr() function
substr() function
substr_compare() function
substr_count() function
substr_replace() function
trim() function
ucfirst() function
ucwords() function
wordwrap() function
array
Array type
Numeric array
Associate array
Multidimensional array
array() function
array_change_key_case() function
array_chunk() function

Copyright ©2022 coderraj.com. All Rights Reserved.