Closure::bindDuplicates a closure with a specific bound object and class scope Description
public static Closurenull Closure::bind(Closure
$closure , objectnull $newThis , objectstringnull $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 ExamplesExample #1 Closure::bind example
The above example will output something similar to: 1 2 See Also
|