PHP ManualClosure::bind(PHP 5 >= 5.4.0) Closure::bind — Duplicates 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 ExamplesExample #1 Closure::bind() example
<?php The above example will output something similar to: 1 2 See Also
![]() |
PHP-Index
New Tutorial entries
|