Q. What will be the output?

Code:
$a = 1;
$b = $a;
$b++;
echo $a;
  • (A) 1
  • (B) 2
  • (C) Error
  • (D) NULL
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1
Explanation: Assignment is by value, so $a is unaffected.
Explanation by: Roshan
Assignment is by value, so $a is unaffected.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
36
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
98%
Success Rate