PHP - octal literal

constants of octal numeral system are also known as octal literals. might contain digits from 0 up to 7.

octal literal

Description

 0123

Output

Examples

PHP

octal literal the possible of use:
$x = 012;         // x = 10
$y = 4 * 077;     // y = 374
if ($x>10)
  $y = (double)$x / 0xa;   // y = 1

PHP

Other pieces of example codes:
0123
0111

you can find it in the following collections: constants
Languages: en hu cz sk