+ 2

My php quiz declined for some unconvincing reason 😭 😫

Today, Sololearn responded by not accepting my quiz, and the reason is 'Misleading', Why ? What is the output of this code? <?php $m=5; $m+=$m++; echo $m;

4th May 2017, 4:48 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
11 ответов
+ 11
Try correcting the code and resubmitting it! [1]Make sure to close the angle brackets(>) [2] Re-checking the correct answer Good Luck!
5th May 2017, 5:58 AM
Harshit Gupta
Harshit Gupta - avatar
+ 10
Truly, same condition here...but for me it's the community downvotes! :-\
4th May 2017, 4:50 PM
Dev
Dev - avatar
+ 10
What did you submit to be the correct answer?
4th May 2017, 4:53 PM
Tashi N
Tashi N - avatar
+ 9
35 of my submissions are declined due to such reasons. 😔😔😔
5th May 2017, 2:27 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
@Nassreddine, it the one of common excuses that is tagged with declined quizzes and second one is "similar quizzes".
4th May 2017, 5:01 PM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 2
@Alx vSeti, Explain to me more please 😁
4th May 2017, 8:47 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
+ 2
PHP challenge, i think it 's easy if it' s created 😌
5th May 2017, 3:29 AM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
+ 2
@Nassreddine Ghozzi "Operator precedence and associativity only determine how expressions are grouped, they do not specify an order of evaluation. PHP does not (in the general case) specify in which order an expression is evaluated and code that assumes a specific order of evaluation should be avoided, because the behavior can change between versions of PHP or depending on the surrounding code." http://php.net/manual/en/language.operators.precedence.php
5th May 2017, 8:24 PM
Alx vSeti
Alx vSeti - avatar
+ 1
Actually it's not about "misleading". It's about "the result is unspecified".
4th May 2017, 8:00 PM
Alx vSeti
Alx vSeti - avatar
+ 1
@Tashi N, i submit 11
4th May 2017, 8:06 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar
0
@Alx vSeti, i submit a trus result
4th May 2017, 8:07 PM
Elghozi Nasreddine
Elghozi Nasreddine - avatar