Examveda
Examveda

What will be the output of the following PHP code ?
<?php
print("this"."was"."a"."bad"."idea");
?>

A. thiswasabadidea

B. this was a bad idea

C. nothing

D. error

Answer: Option A

Solution(By Examveda Team)

You can use the dot operator like in echo but you can not use the comma operator to do the same.

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

Join The Discussion

Related Questions on Operators and Expressions in php