Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Variable Scope
Search
Kyle B. Johnson
July 23, 2015
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Variable Scope
Kyle B. Johnson
July 23, 2015
Transcript
18 slides
Functions, Arguments, and Returns Variable Scope
Global Scope
Global Scope The Global Scope is the main context of
an Application. Variables in the Global Scope of a PHP application are accessible anywhere after the variable has been declared.
Global Scope
Application Input Output
Functions
Functions Functions are blocks of code which can be used
more than once within an application.
Functions
Functions Functions create a relationship between Input and Output. In
PHP, a function’s input is called the Argument list and the output is called the Return statement.
Function $args $return
Functions
Application Input Output Function $args $return
Functions
Object Oriented Programming
Classes
Classes
Class $args $return Method $args
Application Input Output Class $args $return Method $args Class $args
$return Method $args Class $args $return Method $args Class $args $return Method $args
More Decks by Kyle B. Johnson
See All by Kyle B. Johnson
Continuously Delivering Value
kjohnson
0
150
Building Pages in WordPress
kjohnson
0
200
Gutenberg
kjohnson
0
390
Introduction to WP-CLI
kjohnson
0
350
Separate your time from your income
kjohnson
0
500
iThemes Exchange
kjohnson
0
140
Easy Digital Downloads
kjohnson
0
88
PHP Templating
kjohnson
0
1.2k
WordPress Taxonomies
kjohnson
0
96
Other Decks in Programming
See All in Programming
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
350
선언형 햅틱 라이브러리 진동을 소개합니다
l2hyunwoo
1
320
Engineering Biometric UX Across Android Versions | DroidKnights 2026
ryunen344
1
210
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.1k
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1k
エラーチャンネルのボールを拾い続けて鍛えるエンジニアの地力 / phpcon-niigata2026
meihei3
1
450
自作Discord音声botをLambda MicroVMsに移行した話 / Migrating My Discord Voice Bot to Lambda MicroVMs
akihisaikeda
1
370
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
140
Distance field of Julia set
kinakomoti321
0
330
AI時代のTerminal環境を UNIX哲学で設計・運用する
yasunori0418
1
360
AI時代のIaC入門 〜なぜインフラをコードで管理したいのか?〜 / Introduction to IaC in the AI Era
akihisaikeda
6
1.5k
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.3k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
2k
From π to Pie charts
rasagy
1
450
Designing Experiences People Love
moore
143
24k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
350
Done Done
chrislema
187
17k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
SEO for Brand Visibility & Recognition
aleyda
0
4.9k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
BBQ
matthewcrist
90
10k
The Cult of Friendly URLs
andyhume
79
7.1k
4 Signs Your Business is Dying
shpigford
187
23k