WordPress at a glance
function is not described

getid3_lib::fileextension() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

String.

Usage

$result = getid3_lib::fileextension( $filename, $numextensions );
$filename(string) (required)
-
$numextensions(int)
-

Code of getid3_lib::fileextension() WP 5.7.2

<?php
public static function fileextension($filename, $numextensions=1) {
	if (strstr($filename, '.')) {
		$reversedfilename = strrev($filename);
		$offset = 0;
		for ($i = 0; $i < $numextensions; $i++) {
			$offset = strpos($reversedfilename, '.', $offset + 1);
			if ($offset === false) {
				return '';
			}
		}
		return strrev(substr($reversedfilename, 0, $offset));
	}
	return '';
}