What is the difference between include_once and require_once?

Junior PHP

Answer

Both include a file only once. include_once gives a warning on failure, require_once causes a fatal error.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice