Summary
Keywords
Full Transcript
Let's review the data types in PHP & typecasting. PHP does some magic when it comes to handling various data types. It's called type juggling. There will be individual videos for each of the types because I want to go into more detail & discuss some of the important things that otherwise would make this video too long. These small details are very important in my opinion because they will help you understand how things work in PHP what some may call "magic" when it comes to data types & casting. 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.4 Course Outline - https://github.com/ggelashvili/learnphptherightway-outline Course Playlist - https://www.youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe- RESOURCES Type Juggling - https://www.php.net/manual/en/language.types.type-juggling.php Type Comparison - https://www.php.net/manual/en/types.comparisons.php CHAPTERS 00:00 - Intro 00:19 - Dynamically Types vs Statically Typed 01:18 - Scalar Types (bool, int, float, string) 03:05 - Get The Type Of The Variable (gettype, var_dump) 04:25 - Arrays (Compound Types) 06:19 - Null Type 06:25 - Automatic Type Detection 07:05 - Type Hinting Example 08:22 - Type Juggling / Type Coercion 10:15 - Strict Types 11:12 - Type Casting
