Tell me what is the main difference between require() and require_once()?

Submitted by: Muhammad
require() and require_once() perform the same task except that the second function checks if the PHP script is already included or not before executing it.

(same for include_once() and include())
Submitted by: Muhammad

Read Online Junior Developer PHP Job Interview Questions And Answers