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”.

This Question Belongs to PHP >> Basic PHP

Join The Discussion

Related Questions on Basic PHP