Q. What will be the output?

Code:
$x = 5;
echo $x++;
  • (A) 5
  • (B) 6
  • (C) Error
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (A) 5
Explanation: Post-increment returns value first, then increments.
Explanation by: Roshan
Post-increment returns value first, then increments.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
21
Total Visits
πŸ“½οΈ
4 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
99%
Success Rate