Transactions where the dividend value starts with 0 [duplicate]

0

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?

    
asked by anonymous 05.06.2017 / 15:22

0 answers