I have the following code:
$value = 040;
echo $value / 2;
Output:
16
The variable $value
is given 040
instead of simply 40
. However, in some languages, perhaps most, 0
would be disregarded, in PHP not.
What would be the logic behind this operation?