WordPress at a glance
function is not described

getid3_lib::Bin2Dec() public WP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

Int|float. Nothing.

Usage

$result = getid3_lib::Bin2Dec( $binstring, $signed );
$binstring(string) (required)
-
$signed *(true false)*

Code of getid3_lib::Bin2Dec() WP 5.7.2

<?php
public static function Bin2Dec($binstring, $signed=false) {
	$signmult = 1;
	if ($signed) {
		if ($binstring[0] == '1') {
			$signmult = -1;
		}
		$binstring = substr($binstring, 1);
	}
	$decvalue = 0;
	for ($i = 0; $i < strlen($binstring); $i++) {
		$decvalue += ((int) substr($binstring, strlen($binstring) - $i - 1, 1)) * pow(2, $i);
	}
	return self::CastAsInt($decvalue * $signmult);
}