Name

decbin()

Synopsis

    string decbin ( int num )

The decbin() function converts a decimal number into a binary number. It takes just one parameter, which is the number to convert. For example:

    print decbin(16); // "10000"

Get PHP in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.