getid3_lib::Dec2Bin

Advertisement

Syntax Syntax

getid3_lib::Dec2Bin( int $number )

Parameters Parameters

$number

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

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