Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
PHP Enums With Practical Examples - Full PHP 8 Tutorial
Play lesson

Learn PHP The Right Way - Full PHP Tutorial For Beginners & Advanced - PHP Enums With Practical Examples - Full PHP 8 Tutorial

Master PHP 8 in Style: From Basics to Building Dynamic Apps with Program With Gio

4.0 (0)
14 learners

What you'll learn

Learn to install and configure PHP and web servers effectively
Understand and utilize PHP data types and operators for code efficiency
Master PHP's OOP concepts, including classes, interfaces, and inheritance
Implement security measures like CSRF, XSS protection, and session management

This course includes

  • 34.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

Let's learn more about the enums feature that was introduced in PHP 8.1 with some practical examples. 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! 🛠️ TOOLS & SERVICES I USE Digital Ocean Hosting - Get 100$ credit - https://m.do.co/c/38b935ad74e5 Domains on Namecheap - https://namecheap.pxf.io/rnRjdQ Envato Elements - https://1.envato.market/c/2937311/298927/4662 Adobe Photoshop & Premiere - https://clk.tradedoubler.com/click?p=264355&a=3250276 COURSE PLAYLIST https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe- RESOURCES Source repo - https://github.com/ggelashvili/learnphptherightway-project/tree/3.11 Docs - https://www.php.net/manual/en/language.enumerations.php Attributes lesson 3.10 - https://youtu.be/I7WJa-he5oM PHP 8.1 overview lesson 3.8 - https://youtu.be/cO6i_4n2iwA ** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you. TABLE OF CONTENTS 00:00 - Intro 00:26 - Constant approach & the problem with constants 04:57 - Enums approach & the solution 09:36 - Pure & backed enums 12:48 - Get enum object from the raw value 15:04 - Methods in enums 19:28 - Static methods in enums 20:24 - Refactoring hardcoded values with enums in attributes 23:33 - Interfaces & traits in enums 24:57 - Enum rules 25:51 - Access list of all cases 26:59 - New function & reflection classes

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere