In PHP, integers can be specified in decimal (base 10), hexadecimal (base 16), octal (base 8), and ______ (base 2) format.
- Binary
- Ternary
- Quaternary
- Octal
In PHP, integers can be specified in decimal (base 10), hexadecimal (base 16), octal (base 8), and binary (base 2) format. Decimal is the most common format, while hexadecimal is denoted by the prefix "0x", octal by the prefix "0", and binary by the prefix "0b". These different formats provide flexibility in representing and working with integers in various numeric systems. Learn more: https://www.php.net/manual/en/language.types.integer.php
Loading...
Related Quiz
- If a required field is left empty in a PHP form, you can display an error message by ______.
- PHP is loosely typed, meaning:
- In a PHP do...while loop, the condition is tested ______ the code block is executed.
- A constant in a PHP class is defined using the const keyword.
- You have a PHP script and you need to execute a query in a MySQL database. How would you do this?