A

Admin • 825.56K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 9
  • Filed under category PHP
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.