Home / PHP Tips Generated By ChatGPT / Checking If a Function Exists in PHP Check if a function is defined in PHP using function_exists(). Source Code if (function_exists("array_map")) { echo "array_map function exists."; }