• Artigos
  • Projetos
  • Download
  • Docs
  • Enviar Artigo
  • ?
The Closure class
Serializable::unserialize
Closure::__construct
Predefined Interfaces
PHP Manual

The Closure class

Introdução

Class used to represent anonymous functions.

Anonymous functions, implemented in PHP 5.3, yield objects of this type. This fact used to be considered an implementation detail, but it can now be relied upon. Starting with PHP 5.4, this class has methods that allow further control of the anonymous function after it has been created.

Besides the methods listed here, this class also has an __invoke method. This is for consistency with other classes that implement calling magic, as this method is not used for calling the function.

Sinopse da classe

Closure {
/* Methods */
__construct ( void )
public static Closure bind ( Closure $closure , object $newthis [, mixed $newscope = 'static' ] )
public Closure bindTo ( object $newthis [, mixed $newscope = 'static' ] )
}

Índice

  • Closure::__construct ? Constructor that disallows instantiation
  • Closure::bind ? Duplicates a closure with a specific bound object and class scope
  • Closure::bindTo ? Duplicates the closure with a new bound object and class scope

Serializable::unserialize
Closure::__construct
Predefined Interfaces
PHP Manual

Comentários

Adicionar Comentário
 login  
 senha  
 Texto  

Livros sobre PHP

Orientação a
objetos
Criando
relatórios
Aplicações
gráficas com Gtk

Comunidade

Busque conteúdo no site
Participe de nosso grupo no google

[Página do grupo]  [Arquivo do grupo]

Ferramentas de desenvolvimento PHP

Conheça o Adianti Framework para PHP:

  • Desenvolvimento com componentes;
  • Formulários e datagrids.
  • Versão Web e Desktop (Gtk);
  • Multiplataforma;
  • Desenhe as interfaces;
  • IDE própria (Adianti Studio).
Ver detalhes...

Tenha mais produtividade com:

Adianti Studio: IDE para PHP

  • Leve e rápido;
  • Syntax highlight;
  • Gerência de projetos;
  • Navegação em banco de dados;
  • Autocomplete e plugins.
Mais informações...

    Paleta

    Google

    Parceiros

 
Designed by Wolfgang Bartelme Designed by Wolfgang Bartelme

© 2006 Wordpress Themes | Theme (Not so) Fresh
XHTML CSS RSS