I know the basic usage of PHP require, require once, include and include once. But I am confused about when I should use them.
Example: I have 3 files, eg: settings.
require_once would check if the file is already included and not include it again, so don't worry it won't load settings.php twice.
require_once
settings.php