src/classes/CCStr.php
public static function suffix( $string, $sep = '-' ) 
	{
		return substr( $string, strrpos( $string, $sep )+strlen( $sep ) );
	}
public static function suffix( $string, $sep = '-' ) 
	{
		return substr( $string, strrpos( $string, $sep )+strlen( $sep ) );
	}
public static function suffix ( $ string , $ sep = '-' ) { return substr ( $ string , strrpos ( $ string , $ sep ) + strlen ( $ sep ) ) ; }
Get the last part of a string

CCStr::suffix( 'some-strange-file-name-2014' ); // 2014
CCStr::suffix( '/path/to/my/file.xml', '/' ); // file.xml

@param string 	$string
@param string		$sep			The seperator string.
@return string
Get the last part of a string