PHPize Online / SQLize Online
A A A

Share   Donate   Blog   Popular

decbin

Tags: PHP 5.x PHP 7.x PHP 8.x

decbin — Decimal to binary.

Description

decbin(
    int $num
): string
Returns a string containing a binary representation of the given num argument.

Parameters

num
The decimal value to convert to binary.

Return Values

Binary string representation of num.

decbin - New snippets