Help to understand the basics. 1 byte = 8 bits In 1 byte a maximum of 255 values ​​can fit

The number 10010101110 in the two-point system = 1198 in the decimal system

Question: How to make such a translation in PHP?

    1 answer 1

    There is a function bindec , just what you need. To reverse convert decbin

    echo bindec('10010101110');