getid3_lib::array_max

Advertisement

Syntax Syntax

getid3_lib::array_max( array $arraydata, bool $returnkey = false )

Parameters Parameters

$arraydata

(array) (Required)

$returnkey

(bool) (Optional)

Default value: false

Return Return

(int|false)

Source Source

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

		foreach ($arraydata as $key => $value) {
			if (!is_array($value)) {
				if (($maxvalue === false) || ($value > $maxvalue)) {
					$maxvalue = $value;
					$maxkey = $key;
				}
			}
		}
		return ($returnkey ? $maxkey : $maxvalue);
	}

	/**
	 * @param array $arraydata

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.