PHP » GoLang |
login |
register |
about
|
is_callable(PHP 4 >= 4.0.6, PHP 5, PHP 7) is_callable — Verify that the contents of a variable can be called as a function DescriptionVerify 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. Parameters
Return Values
Returns Examples
Example #1 is_callable() example
<?php Example #2 is_callable() and constructors As of PHP 5.3.0 is_callable() reports constructors as not being callable. This affects PHP 5 style constructors (__construct) as well as PHP 4 style constructors (i.e. methods with the same name as the class). Formerly, both cases have been considered callable.
<?php The above example will output: bool(false) bool(false) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|