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.";
}
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments