What are the best practices for including external functions in PHP to avoid redeclaration errors?

When including external functions in PHP, it is important to use include_once or require_once instead of include or require to avoid redeclaration errors. This ensures that the external functions are only included once, preventing any potential conflicts or errors.

// Include external functions using require_once
require_once 'external_functions.php';