πŸ“Š PHP
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

πŸ‘οΈ
5
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
94%
Success Rate