PHP Strict Type Checking

Published: 07 September 2025
on channel: Dave Hollingworth
1,588
142

Learn how to make your PHP code safer and more reliable by using strict type checking.

‣ Please consider supporting my channel: ☕ https://ko-fi.com/davehollingworth

🌐 Recommended host: https://davehollingworth.com/hosting

In this tutorial with real-world examples, learn how by default PHP automatically changes types when necessary; why this is potentially bad, and how to switch it off.

Topics covered:
• Dynamic and loose typing
• Type juggling
• Type declarations
• Enabling strict type checking
• Scope and file boundaries

Source code:
‣ https://gist.github.com/daveh/0d43065...

Related videos:
‣ PHP Type Declarations:    • PHP Type Declarations: make your PHP code ...  

Subscribe End Screen Stock Videos by Vecteezy
https://www.vecteezy.com/free-videos/...

Execution icons created by Freepik - Flaticon:
https://www.flaticon.com/free-icons/e...

00:00:00 Introduction
00:00:09 Dynamic typing
00:00:25 Loose typing
00:01:01 Type juggling
00:01:13 Function example
00:02:37 Type declarations
00:03:06 Strict type checking
00:04:45 Scope
00:06:55 Conclusion

#PHP


On this page of the site you can watch the video online PHP Strict Type Checking with a duration of hours minute second in good quality, which was uploaded by the user Dave Hollingworth 07 September 2025, share the link with friends and acquaintances, this video has already been watched 1,588 times on youtube and it was liked by 142 viewers. Enjoy your viewing!