getid3_lib::safe_inc

Advertisement

Syntax Syntax

getid3_lib::safe_inc( int|null $variable, int $increment = 1 )

Parameters Parameters

$variable

(Required)

$increment

(Optional)

Default value: 1

Return Return

(bool)

Source Source

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

	public static function safe_inc(&$variable, $increment=1) {
		if (isset($variable)) {
			$variable += $increment;
		} else {
			$variable = $increment;
		}
		return true;
	}

Advertisement

Advertisement

Leave a Reply