Examveda
Examveda

What will be the output of the following PHP code?
<?php
$a = "clue";
$a .= "get";
echo "$a";
?>

A. get

B. true

C. false

D. clueget

Answer: Option D

Solution(By Examveda Team)

.= is a concatenation-assignment. $a equals its current value concatenated with “get”.

Join The Discussion

Related Questions on Basic PHP