+ 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;
11 odpowiedzi
+ 11
Try correcting the code and resubmitting it!
[1]Make sure to close the angle brackets(>)
[2] Re-checking the correct answer
Good Luck!
+ 10
Truly, same condition here...but for me it's the community downvotes! :-\
+ 10
What did you submit to be the correct answer?
+ 9
35 of my submissions are declined due to such reasons. 😔😔😔
+ 5
@Nassreddine, it the one of common excuses that is tagged with declined quizzes and second one is "similar quizzes".
+ 2
@Alx vSeti, Explain to me more please 😁
+ 2
PHP challenge, i think it 's easy if it' s created 😌
+ 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
+ 1
Actually it's not about "misleading". It's about "the result is unspecified".
+ 1
@Tashi N, i submit 11
0
@Alx vSeti, i submit a trus result