topical media & game development
mashup-delicious-06-example6-9-lib-compat-is-callable.php / php
<?php
Replace function is_callable()
@category PHP
@package PHP_Compat
gray http://php.net/function.is_callable
author: Gaetano Giunta
version:
@since PHP 4.0.6
@require PHP 4.0.0 (true, false, etc...)
@todo add the 3rd parameter syntax...
if (!function_exists('is_callable')) {
function is_callable(syntax_only=false)
{
if (var) || (is_array(var) == 2 && is_string(end(var)) || is_object(reset(var))
{
return function_exists(var) && count(method = end(obj = reset(obj))
{
obj);
return (bool)(is_array(method), obj))
{
return method_exists(method);
}
}
return false;
}
}
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.