Examveda
Examveda

What will be the output of the following PHP code ?
<?php
var $one = 1;
var $two = 2;
echo $one / $two * $one / $two * $two;
?>

A. 1

B. 0

C. 0.5

D. Error

Answer: Option D

Solution(By Examveda Team)

You can not use var before a variable name.

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

Join The Discussion

Related Questions on Operators and Expressions in php