How to get substring after last separator in php?
This function will return the last substring after trimming the string according to the separator passed in.
1. Code:
2. Example:
Input:
"Soltuts.com is providing PHP tutorials"
Output:
tutorials
This function will return the last substring after trimming the string according to the separator passed in.
"Soltuts.com is providing PHP tutorials"
tutorials