There is an online PHP book, Practical PHP Programming, that covers a variety of PHP topics. It has been published, but the author still has it available online. If you are looking for an apprehensive guide to PHP, this is it! Topics covered include functions, arrays, databases, objects, and many more. The URL is http://www.hudzilla.org/phpbook/. I hope it helps you!