Computer Science, asked by thakurmaninder7530, 1 year ago

What will be the output of the following PHP code ?

<?php $x = "test"; $y = "this"; $z = "also"; $x .= $y .= $z ; echo $x; echo $y; ?>
A.testthisthisalso
B.testthis
C.testthisalsothisalso
D.error at line 4

Answers

Answered by Anonymous
0
______✨ HEY MATE ✨______

➡️Option (C) testthisalsothisalso is the right answer ✔️

The x .= y is a shorthand for x = x.y and this is evaluated from right to left.

&lt;marquee&gt;✌️ I THINK IT HELPED YOU ✌️
Answered by cutieeee10101
0
hey mate........the answer is

c. testthisalsothisalso
Similar questions