Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$a  =  '4' ;
print  +  + $a;
?>

A. no output

B. error

C. 5

D. 0

Answer: Option C

Solution(By Examveda Team)

The character is type casted to integer before multiplying.

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

Join The Discussion

Related Questions on Operators and Expressions in php