What are the potential pitfalls of including a library multiple times in a PHP script?

Including a library multiple times in a PHP script can lead to conflicts, duplicate function declarations, and increased memory usage. To avoid these pitfalls, it is recommended to use the `require_once` or `include_once` functions instead of `require` or `include`. These functions ensure that the library is only included once in the script, preventing any conflicts or duplication.

<?php
require_once 'library.php';
// Rest of your PHP code here
?>