What is the difference between using "print include" and "include()" in PHP?

When including a file in PHP, using the "include" statement will simply include the contents of the file in the current script and continue executing the rest of the code even if the included file is not found. On the other hand, using the "include()" function will also include the file in the current script but will return a warning message if the file is not found. It is generally recommended to use "include()" as it provides better error handling.

// Using include statement
include 'file.php';

// Using include() function
include('file.php');