Рет қаралды 117,475
In this video, you'll learn how to define & use constants in PHP in two ways. You'll also learn what variable variables are & how to use them.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
👍 Smash the like button
🤝 Subscribe to the channel & turn the notifications on
💬 Post comments, any feedback is greatly appreciated
⭐ Become a Patreon: / programwithgio
THANK YOU!
LESSON 1.3
Course Outline - github.com/ggelashvili/learnp...
Course Playlist - • Learn PHP The Right Wa...
RESOURCES
Predefined Constants - www.php.net/manual/en/reserve...
Magic Constants - www.php.net/manual/en/languag...
CHAPTERS
00:00 - Intro
00:59 - Using define()
01:28 - Constant Naming Rules
02:00 - Print Constants
02:23 - Check If Constant Has Been Defined
03:05 - Using Const Keyword
03:18 - Differences
04:14 - Dynamic Constant Names
04:49 - When To Use Constants
05:03 - Predefined Constants
05:38 - Magic Constants
06:14 - Variable Variables