0
What is the output of this code?
$n=5; if($n<6){$n++}; echo $n;
2 Antworten
0
I'm assuming 6?
If n(5) is smaller than 6, increase n by one
0
Error- you seem to have misplaced the semicolon in the if statement.
if($n<6){$n++;}
You can run it on the code playground to check the output.