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
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.
➡️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.
Answered by
0
hey mate........the answer is
c. testthisalsothisalso
c. testthisalsothisalso
Similar questions
Hindi,
6 months ago
Science,
6 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
India Languages,
1 year ago