πŸ“Š PHP
Q. What will be the output of the following PHP code ?
Code:
<?php
$k = 15;
--$k;
echo $k++;
?>
  • (A) 15
  • (B) 14
  • (C) Error
  • (D) Nothing
πŸ’¬ Discuss
βœ… Correct Answer: (B) 14

Explanation: The + operator does union of arrays in that order, then the === operator compares key and value pairs.

Explanation by: Parvesh Kanani
The + operator does union of arrays in that order, then the === operator compares key and value pairs.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
310
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Parvesh Kanani
Publisher
πŸ“ˆ
95%
Success Rate