Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function CallThisAsADelegate($stringVar)
- {
- echo "Erdbeer".$stringVar;
- }
- function CallsAnotherFunc($func, $param)
- {
- echo "<br />geht das hier?<br />";
- echo "geht das hier?<br />";
- $func($param);
- echo "<br />geht das hier?<br />";
- echo "geht das hier?<br />";
- $func($param);
- $func($param);
- echo "nochmal was";
- }
- $irgendwas = function($stringVar)
- {
- echo $stringVar;
- };
- CallsAnotherFunc($irgendwas, "Delta");
- CallsAnotherFunc("CallThisAsADelegate", "marmelade<br />");
- CallsAnotherFunc(function(){echo "mama mia<br />";}, null);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement