What Are Constants & Variable Variables In PHP – Full PHP 8 Tutorial

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: https://www.patreon.com/programwithgio
THANK YOU!

LESSON 1.3
Course Outline – https://github.com/ggelashvili/learnphptherightway-outline
Course Playlist – https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-

RESOURCES
Predefined Constants – https://www.php.net/manual/en/reserved.constants.php
Magic Constants – https://www.php.net/manual/en/language.constants.magic.php

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

Source: https://www.youtube.com/watch?v=6JtP8xk1U_k

Leave a Reply

Your email address will not be published. Required fields are marked *