I found some strange calculation in PHP, for example:
$c=5; $r = $c + ($c++ + ++$c); echo $r;
Why is the result 19, not 17?
thank
The result must be unspecified. Please read the following PHP spec:https://github.com/php/php-langspec/blob/master/spec/10-expressions.md
, , , . , , , . . , . (, $list1 [$ i] = $list2 [$ ++], , $ - $i, . , $j = $i + $i ++, , $ - $i, . , f() + g() * h(), , , ).
PHP:
Source: https://habr.com/ru/post/1688081/More articles:How to handle multiple users on a Telegram box in C #? - c #Pythonic switch in class - pythonAn expression assigned to a wider main type - cSpring Error loading invalid status code only in Unit Test - javaHow to show month name using PHP_intl? - phpUnderstanding the bracket function - haskellif-elsif без условий, не разветвляющихся правильно в Ruby - rubyDownload FormData in an angular4 application - angularBlank app icon on iPad for iPhone only - iosDebugging Security Rules for Cloud Firestore - firebaseAll Articles