check if a function is callable php

Solutions on MaxInterview for check if a function is callable php by the best coders in the world

showing results for - "check if a function is callable php"
Maria
16 Mar 2020
1<?php
2function test1(){
3}
4var_dump( is_callable("test1") );
5var_dump( is_callable("test2") );
6?>
7
8// Output -
9// bool(true) bool(false)