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
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
220
Async Guzzle - Concurrent HTTP Requests in PHP
jeremeamia
3
4.9k
What's New in PHP 7.4?
jeremeamia
0
190
Applied OOP Design Patterns: Rolling with the Punches
jeremeamia
1
220
Protecting Your Code From A Mischievous Future
jeremeamia
1
330
Iterators and Decorators and Generators, Oh My!
jeremeamia
1
390
Uploading to S3 from PHP
jeremeamia
0
190
APIs with Lumen, Guzzle, & Swagger
jeremeamia
24
7.4k
aRESTful Development with the Wordpress API
jeremeamia
0
230
Other Decks in Programming
See All in Programming
コンテキストエンジニアリング Cursor編
kinopeee
1
730
令和最新版手のひらコンピュータ
koba789
14
8.1k
AIエージェント開発、DevOps and LLMOps
ymd65536
1
360
A Gopher's Guide to Vibe Coding
danicat
0
190
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
200
未来を拓くAI技術〜エージェント開発とAI駆動開発〜
leveragestech
2
190
Langfuseと歩む生成AI活用推進
licux
3
320
Rancher と Terraform
fufuhu
1
130
[FEConf 2025] 모노레포 절망편, 14개 레포로 부활하기까지 걸린 1년
mmmaxkim
0
1.3k
SOCI Index Manifest v2が出たので調べてみた / Introduction to SOCI Index Manifest v2
tkikuc
1
110
Oracle Database Technology Night 92 Database Connection control FAN-AC
oracle4engineer
PRO
1
310
Claude Codeで挑むOSSコントリビュート
eycjur
0
180
Featured
See All Featured
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
284
13k
KATA
mclloyd
32
14k
Mobile First: as difficult as doing things right
swwweet
224
9.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
252
21k
Typedesign – Prime Four
hannesfritz
42
2.8k
BBQ
matthewcrist
89
9.8k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
570
Bash Introduction
62gerente
614
210k
4 Signs Your Business is Dying
shpigford
184
22k
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?> <?