Type Declarations - PHP - P48

Опубликовано: 03 Март 2026
на канале: Dino Cajic
254
11

While other programming languages allowed for type declarations, and most even required it, PHP did not...up until recently. PHP developers can now set data types on their class properties and method parameters, as well as set return types for functions and methods.

Read the full article on my website
https://www.dinocajic.com/php-type-de...

Code for this tutorial
https://github.com/dinocajic/php-7-yo...

Full Code
https://github.com/dinocajic/php-7-yo...

PHP Playlist
   • PHP Tutorial  

--
Dino Cajic
Author and Head of IT

Homepage: https://www.dinocajic.com
GitHub: https://github.com/dinocajic
Medium:   / dinocajic  
Instagram:   / think.dino  
LinkedIn:   / dinocajic  
Twitter:   / dino_cajic  

My Books
An Illustrative Introduction to Algorithms
https://www.amazon.com/dp/1686863268

Laravel Excel: Using Laravel to Import Data
https://amzn.to/4925ylw

Code Along With Me - PHP: From Basic to Advanced PHP Techniques
https://amzn.to/3M6tlGN