Name

dechex()

Synopsis

    string dechex ( int num )

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

    print dechex(232); // "e8"

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.