10 Ways to Use Functions in Your Code to Become a Better PHP Developer
Functions are fundamental to writing code, making it vital that you write them well.
Well-written functions make your code efficient, easy to read and reduce the chance of errors.
Here is a list of advice on writing good functions with PHP examples, as detailed in Robert C. Martin’s book titled Clean Code: