A

Admin • 832.27K Points
Coach

Q. What will be the output of the following PHP code ?

Code:
<?php
$s = 4;
$t = 8;
$s *= $t /= $s;
echo $s, $t;
?>
  • (A) 82
  • (B) 4
  • (C) 8
  • (D) Nothing
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin

Expression is evaluated from right to left.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.