The question is as follows. Correct answers in bold.
What would go in place of ?????? below to make this script execute without a fatal error?die() and exit() are quite obvious, stop() and quit() do not exist and what about __halt_compiler()? The latter was introduces in PHP5. Manual page says it stops the execution of the compiler and nothing after this call is executed.<?php
$a = 1;
$b = 0;
??????
$c = $a / $b;
?>
- quit();
- die();
- stop();
- __halt_compiler();
- exit();
I've never heard this about __halt_compiler :)
ReplyDeleteYou mean "stop() and quit() do not exist"....
ReplyDeleteYes, you are right Jon. Thanks for that. I have already changed that.
ReplyDelete