How to Write PHP Scripts
If you run screaming at the sight of code, this is the chapter you’ll enjoy the least, but it’s an important one that I’ve tried to make as user friendly as possible. The chapter is in two parts: the first section offers a quick overview of how PHP works and gives you the basic rules; the second section goes into more detail.
You can read just the first section and come back to the more detailed parts later, or you can read the chapter straight through. However, don’t attempt to memorize everything at one sitting. The best way to learn is by doing. Coming back to the second part of the chapter for a little information ...