What are some potential pitfalls of reloading functions in PHP scripts?

Reloading functions in PHP scripts can lead to conflicts and errors due to redeclaring functions that already exist. To avoid this, it is important to check if a function exists before declaring it again.

if (!function_exists('my_function')) {
    function my_function() {
        // Function code here
    }
}