Uploaded March 2021 | Updated November 2026, 3 hours ago
In this video, you will learn all you need to know about namespaces in PHP. Not only you will learn the basics of namespaces, but if you watch this video till the end you will know a lot of important details about namespaces. There are some caveats & things to be aware of when working with namespaces.
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: patreon.com/programwithgio
THANK YOU!
LESSON 2.4
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
RESOURCES
Namespaces Docs - php.net/manual/en/language.namespaces.php
Name Resolution Rules - php.net/manual/en/language.namespaces.rules.php
How does a name like \my\name or \name resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.full
How does a name like my\name resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.qualified
How does an unqualified class name like *name* resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.shortname1
How does an unqualified function name or an unqualified constant name like *name* resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.shortname2
Defining Multiple Namespaces In The Same File
php.net/manual/en/language.namespaces.definitionmultiple.php
In this video, you will learn all you need to know about namespaces in PHP. Not only you will learn the basics of namespaces, but if you watch this video till the end you will know a lot of important details about namespaces. There are some caveats & things to be aware of when working with namespaces.
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: patreon.com/programwithgio
THANK YOU!
LESSON 2.4
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
RESOURCES
Namespaces Docs - php.net/manual/en/language.namespaces.php
Name Resolution Rules - php.net/manual/en/language.namespaces.rules.php
How does a name like \my\name or \name resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.full
How does a name like my\name resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.qualified
How does an unqualified class name like *name* resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.shortname1
How does an unqualified function name or an unqualified constant name like *name* resolve?
php.net/manual/en/language.namespaces.faq.php#language.namespaces.faq.shortname2
Defining Multiple Namespaces In The Same File
php.net/manual/en/language.namespaces.definitionmultiple.php










