Examveda
Examveda

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

A. qwe12345rty

B. qwe{$a}rty

C. error

D. no output

Answer: Option B

Solution(By Examveda Team)

qwe{$a}rty, single quotes are not parsed.

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

Join The Discussion

Related Questions on Operators and Expressions in php