The Closure class

(PHP 5 >= 5.3.0)

简介

Class used to represent anonymousfunctions. 

Anonymous functions, implemented in PHP 5.3, yield objects of this type.This fact used to be considered an implementation detail, but it can nowbe relied upon. Starting with PHP 5.4, this class has methods that allowfurther 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 otherclasses that implement callingmagic, as this method is not used for calling the function. 

类摘要

Closure {

/* 方法 */

__construct( void)

public static Closure bind( Closure $closure, object $newthis[, mixed $newscope  = 'static'] )

public Closure bindTo( object $newthis[, mixed $newscope  = 'static'] )

}

Table of Contents

◾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

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

热门产品

php编程基础教程.pptx|php编程培训,php,编程,基础,教程,pptx
php编程基础教程.pptx

历史上的今天:04月28日

referrer策略和meta标签的问题

referrer策略和meta标签的问题请求后端接口时,banner图片的请求出现403错误:GEThttp://xxxxxxxxxxxx403(Forbidden)。在网上搜寻一番,解决方法如下:在index.html中的head中添加<meta name="referrer" content="no-referrer" />。在此之前,关于r

热门专题

大理科技管理学校|大理科技管理学校,大理科技,大理科技中等职业技术学校,大理科技管理中等职业技术学校,大理科技学校
大理科技管理学校
云南开放大学|云南开放大学报名,云南开放大学报考,云南开放大学,什么是云南开放大学,云南开放大学学历,云南开放大学学费,云南开放大学报名条件,云南开放大学报名时间,云南开放大学学历,云南开放大学专业
云南开放大学
APP开发|app开发_app开发公司_app软件开发_专业app开发_云南app开发公司_app定制_原生app开发定制
APP开发
易捷尔高职单招|易捷尔高职单招,易捷尔高职单招培训,单招分数线,单招录取分数线,高职单招学校分数线
易捷尔高职单招
综合高中|云南综合高中,昆明综合高中,综合高中能考本一吗,综合高中和普通高中的区别,综合高中是什么意思,综合高中能参加全国统一高考吗,综合高中可以考哪些大学,综合高中的学籍是什么
综合高中
外贸网站建设|外贸网站建设,英文网站制作,英文网站设计,美国主机空间,外贸建站平台,多语言网站制作
外贸网站建设
云南高职单招|云南单招,云南单招网,云南高职单招网,云南高职单招,云南单招学校,云南单招培训
云南高职单招
云南综合高中|云南综合高中
云南综合高中

微信小程序

微信扫一扫体验

立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部