Home > PHP > Function > Variable handling > is_callable()

is_callable()

is_callable - Verify that the contents of a variable can be called as a function

Syntax

bool is_callable ()

Arguments

-

Description

Verify that the contents of a variable can be called as a function. This can check that a simple variable contains the name of a valid function, or that an array contains a properly encoded object and function name.

Version

PHP 4.0.6, 5

Return value

Returns TRUE if name is callable, FALSE otherwise.