|
|
|
|
|
by munk-a
2029 days ago
|
|
Not quite - 0123 is the octal value 123 which happens to be 83 in decimal. Numbers starting with a 0 in PHP are assumed to be in octal but I this isn't the case for strings[1] - to add to confusion "123foo" == 123 => true but "0123foo" = 0123 => false. 1. https://3v4l.org/hAoL2 |
|