Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 425 Bytes

0341.md

File metadata and controls

25 lines (21 loc) · 425 Bytes

What is the output of the following PHP script?

for ($i = 5; ; $i++) {
    if ($i < 10) {
        break;
    }
}
echo $i;

Enter the exact script output

  • A) 5
  • B) 12345
  • C) null
  • D) an error
Answer

Answer: A