Closure::bindDuplicates a closure with a specific bound object and class scope Description
public static Closure Closure::bind
( Closure
$closure
, object $newthis
[, mixed $newscope
= "static"
] )This method is a static version of Closure::bindTo. See the documentation of that method for more information. Parameters
Return Values
Returns a new Closure object or Changelog
ExamplesExample #1 Closure::bind example
<?php The above example will output something similar to: 1 2 See Also
|