Answers for "is_callable in 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

Browse Popular Code Answers by Language