How to optimize PHP scripts

PHP Optimizing Tips for Better Experience Designing websites is a fun affair, every developer loves to sit in front of his system and punch keys on the keyboard but optimizing PHP script is a nightmare. It takes your sleep away and leaves you with weird codes to be arranged. At the end of the day it is essential to optimize the script. Optimizing the script in earlier stages of development is even more important.