Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$x = 3, 4, 5, 6;
echo "$x";
?>

A. 3

B. 4

C. 6

D. Error

Answer: Option D

Solution(By Examveda Team)

In C you won’t get an error but in PHP you’ll get a syntax error.

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

Join The Discussion

Related Questions on Operators and Expressions in php