Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 431 Bytes

0313.md

File metadata and controls

23 lines (20 loc) · 431 Bytes

What is output of the following PHP script?

$str = 'foo';
$str .= 'bar';
$num = 0;
$num += 25;
$num -= 15;
echo $str . ' - ' . $num;
  • A) foobar - 10
  • B) 0bar - -15
  • C) 0 - 0
  • D) foobar - 325
Answer

Answer: A