brianhaveri/Underscore.php — pull request #20 by chrsm (2012-12-08 06:22:47+00:00)
Title: 'bind' and 'bindAll'

Adds in support for 'bind' and 'bindAll', although 'bindAll' is not as fancy as it is in underscore.js. It needs to be used with the list construct.

Ex:

```php
property = 'nope';
};

$f2 = function($passed=null) {
var_dump($this);
};

list($f, $f2) = __::bindAll($a, $f, $f2);

$f();
$f2();
var_dump($a);
```