Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP Closures - Lightning Talk
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Jeremy Lindblom
September 12, 2013
Programming
2
180
PHP Closures - Lightning Talk
Lightning talk about Closures given on September 12th, 2013, to the Seattle PHP User Group.
Jeremy Lindblom
September 12, 2013
Tweet
Share
More Decks by Jeremy Lindblom
See All by Jeremy Lindblom
Diagram Like a Principal Engineer
jeremeamia
1
300
Async Guzzle - Concurrent HTTP Requests in PHP
jeremeamia
3
5.1k
What's New in PHP 7.4?
jeremeamia
0
240
Applied OOP Design Patterns: Rolling with the Punches
jeremeamia
1
260
Protecting Your Code From A Mischievous Future
jeremeamia
1
420
Iterators and Decorators and Generators, Oh My!
jeremeamia
1
460
Uploading to S3 from PHP
jeremeamia
0
240
APIs with Lumen, Guzzle, & Swagger
jeremeamia
24
7.6k
aRESTful Development with the Wordpress API
jeremeamia
0
290
Other Decks in Programming
See All in Programming
Understanding Apache Lucene - More than just full-text search
spinscale
0
140
AI 開発合宿を通して得た学び
niftycorp
PRO
0
170
20260315 AWSなんもわからん🥲
chiilog
2
170
CS教育のDX AIによる育成の効率化
niftycorp
PRO
0
160
S3ストレージクラスの「見える」「ある」「使える」は全部違う ─ 体験から見た、仕様の深淵を覗く
ya_ma23
0
940
new(1.26) ← これすき / kamakura.go #8
utgwkk
0
2.7k
KagglerがMixSeekを触ってみた
morim
0
110
社内規程RAGの精度を73.3% → 100%に改善した話
oharu121
13
8.3k
AWS×クラウドネイティブソフトウェア設計 / AWS x Cloud-Native Software Design
nrslib
16
3.4k
車輪の再発明をしよう!PHP で実装して学ぶ、Web サーバーの仕組みと HTTP の正体
h1r0
2
360
Feature Toggle は捨てやすく使おう
gennei
0
300
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
3
1.8k
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
820
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
How to Ace a Technical Interview
jacobian
281
24k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
220
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
68
38k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
77
Testing 201, or: Great Expectations
jmmastey
46
8.1k
The Spectacular Lies of Maps
axbom
PRO
1
640
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
0
170
Design in an AI World
tapps
0
180
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
180
Marketing to machines
jonoalderson
1
5k
Transcript
Closures! A lightning talk by Jeremy Lindblom! <?
What are Closures?! Closure anatomy! Closures in objects! Objects as
Closures!
A Closure is an object! that represents an! anonymous function.!
They're anonymous because they don't have a name.!
They are also called lambdas, or lambda functions.! ! This
is a reference to a branch of mathematics called lambda calculus.! Let's not even go there.!
Named functions have names so they can be referenced and
reused.! ! Anonymous functions don't need to be reused. They're great for callbacks...!
like when you are sorting…!
or mapping…!
or anything, really.!
Anatomy of a closure/lambda!
Basic closure syntax!
The use clause!
Recursive closures!
Closures in objects!
Closures in objects!
Binding!
Binding! Scope! Access!
Objects as Closures!
__invoke()!
Closures! QUESTIONS?> <?