Examveda
Examveda

What will be the output of the following PHP code ?
<?php
$a  =  '12345';
echo "qwe$arty";
?>

A. qwe12345rty

B. qwe$arty

C. qwe

D. error

Answer: Option C

Solution(By Examveda Team)

qwe, because $a became $arty, which is undefined.

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

Join The Discussion

Related Questions on Operators and Expressions in php