getid3_lib::Dec2Bin

Advertisement

Syntax Syntax

getid3_lib::Dec2Bin( int $number )

Parameters Parameters

$number

(Required)

Return Return

(string)

Source Source

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

			$number = floor($number / 256);
		}
		$bytes[] = $number;
		$binstring = '';
		for ($i = 0; $i < count($bytes); $i++) {
			$binstring = (($i == count($bytes) - 1) ? decbin($bytes[$i]) : str_pad(decbin($bytes[$i]), 8, '0', STR_PAD_LEFT)).$binstring;
		}
		return $binstring;
	}

	/**
	 * @param string $binstring

Advertisement

Advertisement

Leave a Reply