Answers for "php check if function"

1

function exists

function_exists('function_name'); //Will return true if function exists
Posted by: Guest on August-10-2020
0

check if a function is callable php

<?php
function test1(){
}
var_dump( is_callable("test1") );
var_dump( is_callable("test2") );
?>

// Output -
// bool(true) bool(false)
Posted by: Guest on April-18-2020

Code answers related to "php check if function"

Browse Popular Code Answers by Language