What are the potential drawbacks of using file_get_contents to retrieve the content of a PHP file?

Potential drawbacks of using file_get_contents to retrieve the content of a PHP file include security vulnerabilities such as allowing remote file inclusion attacks and exposing sensitive information. To mitigate these risks, it is recommended to use more secure methods like include or require to include PHP files.

// Use include or require instead of file_get_contents to include PHP files
include 'path/to/file.php';