getid3_lib::safe_inc

Advertisement

Syntax Syntax

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

Parameters Parameters

$variable

(int|null) (Required)

$increment

(int) (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

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