Answers for "check if a function is callable php"

PHP
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 "check if a function is callable php"

Browse Popular Code Answers by Language