in reply to How to extract the substring from a delimiter (dot) to end of string?

Here's a solution which doesn't use regexes, which are probably overkill for this application:

$extension = substr( $string, rindex( $string, '.' ) + 1 );
  • Comment on Re: How to extract the substring from a delimiter (dot) to end of string?
  • Download Code