Closure::bindDuplicates a closure with a specific bound object and class scope Beschreibung
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. Parameter-Liste
Rückgabewerte
Returns a new Closure object Im Fehlerfall wird Changelog
BeispieleBeispiel #1 Closure::bind example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie: 1 2 Siehe auch
|