Skip to content

Instantly share code, notes, and snippets.

@adlermedrado
Created September 26, 2010 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adlermedrado/598045 to your computer and use it in GitHub Desktop.
Save adlermedrado/598045 to your computer and use it in GitHub Desktop.
<?php
class Lambida {
public function hello($param1, $callback) {
echo 'Esse é o valor do $param1: ' . $param1 . '<br />';
echo $callback();
}
}
$lambida = new Lambida();
$lambida->hello('Eu amo muito tudo isso', function() {
return 'Eu sou o retorno da funcao de callback'; }
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment