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)
Are there any code examples left?
New code examples in category PHP
<?php
function test1(){
}
var_dump( is_callable("test1") );
var_dump( is_callable("test2") );
?>
// Output -
// bool(true) bool(false)