Convert decimal to binary:
The decbin() function converts a decimal number to a binary number.
Tip: To convert binary to decimal, look at the bindec() function.
Parameter | Description |
---|---|
number | Required. Specifies the decimal value to convert |
Return Value: | A string that contains the binary number of the decimal value |
---|---|
Return Type: | String |
PHP Version: | 4+ |