Consider the following line of code:
The output of that is 3, which is the expec
. and - have the same precedence, so PHP is reinterpreting '10 - 7 = 10' as a number, giving 10, and subtracting 7 gives 3.
.
-
'10 - 7 = 10'
10
3