public static function thumbit($thumb)
	{
		$dot = strrpos($thumb, '.') + 1;
		$ext = substr($thumb, $dot);

		return preg_replace('#\.[^.]*$#', '', $thumb) . '_thumb.' . $ext;
	}
public static function thumbit($thumb)
	{
		$dot = strrpos($thumb, '.') + 1;
		$ext = substr($thumb, $dot);

		return preg_replace('#\.[^.]*$#', '', $thumb) . '_thumb.' . $ext;
	}
public static function thumbit ( $ thumb ) { $ dot = strrpos ( $ thumb , '.' ) + 1 ; $ ext = substr ( $ thumb , $ dot ) ; return preg_replace ( '#\.[^.]*$#' , '' , $ thumb ) . '_thumb.' . $ ext ; }
Generate a thumbnail file name format
example.jpg -> example_thumb.jpg

@param   string  $thumb  Filename to get thumbnail of
@return  string
Generate a thumbnail file name format example . jpg - > example_thumb . jpg