Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$a = 12;
--$a;
echo $a++;
?>

A. 11

B. 12

C. 10

D. error

Answer: Option A

Solution(By Examveda Team)

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

This Question Belongs to PHP >> Operators And Expressions In Php

Join The Discussion

Related Questions on Operators and Expressions in php