- var_dump: documentation ( source)
- function_exists: documentation ( source)
<?php
class FooBar {
public static function baz() {
function isGlobalFunction() {
echo 'yep';
}
return true;
}
}
FooBar::baz();
var_dump(function_exists('isGlobalFunction'));
isGlobalFunction();