No one likes to write similar code over and over again, it's dog work, and whenever you write code one of your aims should be to avoid any repetition. Not only does it mean you can avoid writing more code, but it'll help to make your application more efficient.
PHP is well geared to enable you to do this by giving you the ability to create functions and classes, and there are a few simple things you can do to help you make your code more reusable.
Don't hardcode your variable's values
We've...
Read more
How to make your PHP code reusable
Leave a reply