in PHP by
What are include() and require() functions in PHP?

1 Answer

0 votes
by

The Include() function is used to put data of one PHP file into another PHP file. If errors occur, then the include() function produces a warning but does not stop the execution of the script, and it will continue to execute.

The Require() function is also used to put data of one PHP file to another PHP file. If there are any errors, then the require() function produces a warning and a fatal error and stops the script.

Related questions

0 votes
asked Jun 5, 2020 in PHP by Robindeniel
0 votes
asked Jun 22, 2019 in PHP by SakshiSharma
0 votes
asked Jun 6, 2020 in PHP by Robindeniel
...