Source Code:
(back to article)
<?php function myCallbackFunction() { echo "The callback function has been executed."; } function parentFunction($callback) { call_user_func($callback); } parentFunction('myCallbackFunction'); ?>
Result:
Report an issue