Skip to content

Instantly share code, notes, and snippets.

@hartym hartym/gist:1309062
Created Oct 24, 2011

Embed
What would you like to do?
<?php
class toto
{
public function __construct()
{
$this->method = function () {
echo 'it works';
};
}
}
$t = new toto();
$t->method();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.