Programming Language PHP Basic MCQ Question #2363
Single Choice Not Set

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

ID: #2363 PHP Basic MCQ 993 views
Question Info
#2363Q ID
Not SetDifficulty
PHP Basic MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A get
  • B true
  • C false
  • D clueget
Correct Answer

Explanation

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

Share This Question

Challenge a friend or share with your study group.