Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 479 Bytes

0217.md

File metadata and controls

25 lines (21 loc) · 479 Bytes

Consider the following script:

$string1 = "ab";
$string2 = "cd";
$string1 = $string1 . $string2$string3 = "abc";
$string1 .= $string3;
echo $string1;

What will be the output of the above PHP script?

  • A) abcdabc
  • B) cdabcab
  • C) abc
  • D) cdabc
Answer

Answer: A