Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$four4 = 4;
$three3 = 3;
$two2 = 2;
echo $four4 + $three3 / $two2 - 1;
?>

A. 4.5

B. 7

C. 3.5

D. Error

Answer: Option A

Solution(By Examveda Team)

You can use numbers in a variable name.

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

Join The Discussion

Related Questions on Operators and Expressions in php