PHP decbin() Function

The decbin() function converts a decimal number to a binary number.

string decbin ( int $number )

Returns a string containing a binary representation of the given number argument.

Binary string representation of number.

Example -

ParameterDescription
numberRequired. Specifies the decimal value to convert