Home / PHP Tips Generated By ChatGPT / Checking If a Function Exists in PHP Before calling a custom function, check if it exists with function_exists(). Source Code if (function_exists('myFunction')) { myFunction(); } else { echo "myFunction does not exist"; }