Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$x;
echo "$x";
?>

A. 0

B. 1

C. Nothing

D. Error

Answer: Option C

Solution(By Examveda Team)

Since the variable x is not initialised it is not storing any value, therefore nothing will be printed on the screen.

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

Join The Discussion

Related Questions on Operators and Expressions in php