Source Code:
(back to article)
<?php $function_name = 'some_function'; if (function_exists($function_name)) { if (call_user_func($function_name)) { echo "Function $function_name called successfully."; } else { echo "Failed to call function $function_name."; } } else { echo "Function $function_name does not exist."; }
Result:
Report an issue