PHP » GoLang |
login |
register |
about
|
Closure::bind(PHP 5 >= 5.4.0, PHP 7) 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 Changelog
ExamplesExample #1 Closure::bind() example
<?php The above example will output something similar to: 1 2 See Also
|
more
Recently updated
more
Most requested
more
Last requests
|