Hyvor Developer
  Home   Download   Copy
Code
<?php
function runFunction(callable $func) {
	echo 'Function is running <br>';
	$func();
}
runFunction(function() {
	echo 'Yay!';
});
Result