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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Jeremy Lindblom
September 12, 2013
Programming
190
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PHP Closures - Lightning Talk
Lightning talk about Closures given on September 12th, 2013, to the Seattle PHP User Group.
Jeremy Lindblom
September 12, 2013
More Decks by Jeremy Lindblom
See All by Jeremy Lindblom
Diagram Like a Principal Engineer
jeremeamia
1
340
Async Guzzle - Concurrent HTTP Requests in PHP
jeremeamia
3
5.2k
What's New in PHP 7.4?
jeremeamia
0
270
Applied OOP Design Patterns: Rolling with the Punches
jeremeamia
1
280
Protecting Your Code From A Mischievous Future
jeremeamia
1
460
Iterators and Decorators and Generators, Oh My!
jeremeamia
1
490
Uploading to S3 from PHP
jeremeamia
0
270
APIs with Lumen, Guzzle, & Swagger
jeremeamia
24
7.7k
aRESTful Development with the Wordpress API
jeremeamia
0
310
Other Decks in Programming
See All in Programming
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
140
ALB ログから Trace を気合で繋げる技術
fohte
7
880
GKE アップグレード前に知っておきたい Blue/Green と PDB の関係
stkk
0
160
MIZARU@SPAJAM2026 第二回予選
1901drama
0
110
自分的「カンファレンスの楽しみ方」
syumai
0
190
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
470
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
0
440
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.5k
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.9k
AIエージェント時代のコードレビューを設計する
nogu66
6
2.5k
[DroidKaigi 2026] Bring your own phones to Gradle Managed Devices
f2lk
0
110
まずはプロンプトガイドを読もう、話はそれからだ
kiakiraki
1
260
Featured
See All Featured
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
A Modern Web Designer's Workflow
chriscoyier
698
190k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
69
65k
Raft: Consensus for Rubyists
vanstee
141
7.7k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
The browser strikes back
jonoalderson
0
1.6k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
400
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
810
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Amusing Abliteration
ianozsvald
1
290
My Coaching Mixtape
mlcsv
0
310
30 Presentation Tips
portentint
PRO
1
390
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?> <?