getid3_lib::fileextension

Advertisement

Syntax Syntax

getid3_lib::fileextension( string $filename, int $numextensions = 1 )

Parameters Parameters

$filename

(Required)

$numextensions

(Optional)

Default value: 1

Return Return

(string)

Source Source

File: wp-includes/ID3/getid3.lib.php

			$offset = 0;
			for ($i = 0; $i < $numextensions; $i++) {
				$offset = strpos($reversedfilename, '.', $offset + 1);
				if ($offset === false) {
					return '';
				}
			}
			return strrev(substr($reversedfilename, 0, $offset));
		}
		return '';
	}

	/**
	 * @param int $seconds

Advertisement

Advertisement

Leave a Reply