Open In App

PHP | ReflectionParameter isCallable() Function

Last Updated : 23 Dec, 2019
Comments
Improve
Suggest changes
Like Article
Like
Report
The ReflectionParameter::isCallable() function is an inbuilt function in PHP which is used to return TRUE if the specified parameter is callable, FALSE otherwise. Syntax:
bool ReflectionParameter::isCallable ( void )
Parameters: This function does not accept any parameters. Return Value: This function returns TRUE if the specified parameter is callable, FALSE otherwise. Below programs illustrate the ReflectionParameter::isCallable() function in PHP: Program 1:
Output:
bool(true)
Program 2:
Output:
bool(true)
bool(false)
bool(false)
Reference: https://www.php.net/manual/en/reflectionparameter.iscallable.php

Next Article

Similar Reads