15. Run-time inclusion of a PHP script is performed using the ________ construct, while compile-time inclusion of PHP scripts is performed using the _______ construct.


Вариант ответа 1 - A) include_once, include

Вариант ответа 2 - B) require, include

Вариант ответа 3 - C) require_once, include

Вариант ответа 4 - D) include, require

Вариант ответа 5 - E) All of the above are correct


Комментарий: In recent versions of PHP, the only difference between require() (or require_once()) and include() (or include_once()) is in the fact that, while the former will only throw a warning and allow the script to continue its execution if the include file is not found, the latter will throw an error and halt the script.

Комментарии

Имя пользователяТекст комментарияВведите код