Multiple choice

You can add PHP to your HTML by putting it in a seperate file and calling it by using PHP's ________ function(s).

  1. call

  2. include

  3. access

  4. both (1) and (2)

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The include() function (and its variants include_once(), require(), require_once()) allows you to insert the contents of one PHP file into another before the server executes it. This enables code reuse and modular design by separating PHP code into multiple files and including them as needed.