What common mistakes should beginners be aware of when using the include function in PHP?

One common mistake beginners make when using the include function in PHP is not providing the correct file path. It's important to specify the correct path to the file you want to include, whether it's an absolute path or a relative path. Another mistake is forgetting to use quotes around the file path. Always enclose the file path in quotes to avoid errors.

// Incorrect include statement without quotes around the file path
include example.php;

// Correct include statement with quotes around the file path
include 'example.php';