Improving Your PHP with Static Types
By Karl Hughes
As PHP incorporates more features typical of statically typed languages, you have the option of adopting an entirely new programming style. While static typing can make your code easier to understand, refactor, and test, PHP’s implementation isn’t quite the same as other languages. This article covers the state of static typing in PHP and how you can use it to improve your code.
This article was originally published in the November 2020 issue of php[architect] magazine. To read the complete article please subscribe or purchase the complete issue.
Leave a comment
Use the form below to leave a comment: