PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      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