PHPDaemon\Utils\Binary::i2b PHP Method

i2b() public static method

Converts integer to binary string
public static i2b ( integer $len, integer $int, boolean $l = false ) : string
$len integer Length
$int integer Integer
$l boolean Optional. Little endian. Default value - false
return string Resulting binary string
    public static function i2b($len, $int = 0, $l = false)
    {
        return static::int2bytes($len, $int, $l);
    }