This tutorial targets the PHP developer who already understands PHP,
but wants to write more efficient PHP code or to improve the
performance of existing PHP applications. It is not intended as an
introduction to PHP -- plenty of other resources are available for
that. Rather, it assumes that you already have an installation of PHP
available and are familiar with the basic PHP syntax.
In this tutorial, you will learn ways to improve the
performance of your PHP code. The tutorial is in four main
parts:
- General coding considerations that can be often applied to any language,
but are illustrated with specific PHP examples (see Writing efficient code).
- Nuances of the PHP language and how you can use them to further improve
the efficiency of your PHP code (see Tweaking PHP code).
- Improving the performance of your SQL queries since, for larger applications, PHP often is used in conjunction with a database (see Optimizing database queries).
- Making your PHP code run faster and references for further reading (see Other performance enhancements).